diff options
author | Ruben Pollan <meskio@sindominio.net> | 2019-10-22 14:02:22 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2019-10-22 14:02:22 +0200 |
commit | 159de5e7e158c0621e06448c629dbb5b08f37a0e (patch) | |
tree | 011aa4566d669cb822914ebe76f27f362f7ec0d2 /modes/transparent_tcp | |
parent | 7548a703e3dbbf50fc66b08d4807790c7c165fec (diff) |
Log errors initializing obfs4 transport server
Diffstat (limited to 'modes/transparent_tcp')
-rw-r--r-- | modes/transparent_tcp/transparent_tcp.go | 6 |
1 files changed, 5 insertions, 1 deletions
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"] |