diff options
Diffstat (limited to 'modes/transparent_udp')
-rw-r--r-- | modes/transparent_udp/transparent_udp.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modes/transparent_udp/transparent_udp.go b/modes/transparent_udp/transparent_udp.go index ab0504e..dc7b6bb 100644 --- a/modes/transparent_udp/transparent_udp.go +++ b/modes/transparent_udp/transparent_udp.go @@ -230,7 +230,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 + } listen = transport.Listen case "Replicant": shargs, aok := args["Replicant"] |