diff options
author | atanarjuat <atanarjuat@example.com> | 2022-06-06 14:54:41 +0200 |
---|---|---|
committer | atanarjuat <atanarjuat@example.com> | 2022-06-06 14:55:01 +0200 |
commit | 0a51eb34640b83a9fcd03ec37911397ad6702ad5 (patch) | |
tree | f9ccca6db7f60f650d9161036a6e97a9c427b7b2 /cmd/client/main.go | |
parent | e36993da03ee0acdb19bfe8e66afe8e5a993b544 (diff) |
catch errors
Diffstat (limited to 'cmd/client/main.go')
-rw-r--r-- | cmd/client/main.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/client/main.go b/cmd/client/main.go index 15f33d5..0dbd711 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -51,5 +51,8 @@ func main() { socksAddr := net.JoinHostPort(socksHost, socksPort) c := client.NewClient(kcpTransport, socksAddr, obfs4Cert) - c.Start() + _, err = c.Start() + if err != nil { + log.Fatal(err) + } } |