diff options
Diffstat (limited to 'modes/transparent_tcp/transparent_tcp.go')
-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"] |