From 159de5e7e158c0621e06448c629dbb5b08f37a0e Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Tue, 22 Oct 2019 14:02:22 +0200 Subject: Log errors initializing obfs4 transport server --- modes/transparent_tcp/transparent_tcp.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modes/transparent_tcp/transparent_tcp.go') diff --git a/modes/transparent_tcp/transparent_tcp.go b/modes/transparent_tcp/transparent_tcp.go index 06597e0..2823e66 100644 --- a/modes/transparent_tcp/transparent_tcp.go +++ b/modes/transparent_tcp/transparent_tcp.go @@ -140,7 +140,11 @@ func ServerSetup(ptServerInfo pt.ServerInfo, statedir string, options string) (l transport := obfs2.NewObfs2Transport() listen = transport.Listen case "obfs4": - transport := obfs4.NewObfs4Server(statedir) + transport, err := obfs4.NewObfs4Server(statedir) + if err != nil { + log.Errorf("Can't start obfs4 transport: %v", err) + return false, nil + } listen = transport.Listen case "Replicant": shargs, aok := args["Replicant"] -- cgit v1.2.3