From 69ffcc39c63f4a9a192082da71eea6b06a1e75d7 Mon Sep 17 00:00:00 2001 From: Yawning Angel Date: Mon, 1 Jun 2015 16:15:35 +0000 Subject: Delay transport initialization till after logging has been setup. --- obfs4proxy/obfs4proxy.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'obfs4proxy/obfs4proxy.go') diff --git a/obfs4proxy/obfs4proxy.go b/obfs4proxy/obfs4proxy.go index 5f7f171..a817583 100644 --- a/obfs4proxy/obfs4proxy.go +++ b/obfs4proxy/obfs4proxy.go @@ -347,6 +347,10 @@ func main() { if err = log.Init(*enableLogging, path.Join(stateDir, obfs4proxyLogFile), *unsafeLogging); err != nil { golog.Fatalf("[ERROR]: %s - failed to initialize logging", execName) } + if err = transports.Init(); err != nil { + log.Errorf("%s - failed to initialize transports: %s", execName, err) + os.Exit(-1) + } log.Noticef("%s - launched", getVersion()) -- cgit v1.2.3