diff options
author | kwadronaut <kwadronaut@leap.se> | 2019-10-23 12:14:47 +0200 |
---|---|---|
committer | kwadronaut <kwadronaut@puscii.nl> | 2019-10-23 12:15:45 +0200 |
commit | 1f11064c46adf504e3a00fe82f66b8bd64adadb8 (patch) | |
tree | b123cecabc5c5e8af25833f473748a7aa4eb6305 /modes/transparent_tcp | |
parent | f63f10369bad778e1fefbac862f1c752d9ca9436 (diff) | |
parent | 159de5e7e158c0621e06448c629dbb5b08f37a0e (diff) |
Merge remote-tracking branch 'meskio/new_obfs4_errors'
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"] |