summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoratanarjuat <atanarjuat@example.com>2022-06-06 14:54:41 +0200
committeratanarjuat <atanarjuat@example.com>2022-06-06 14:55:01 +0200
commit0a51eb34640b83a9fcd03ec37911397ad6702ad5 (patch)
treef9ccca6db7f60f650d9161036a6e97a9c427b7b2
parente36993da03ee0acdb19bfe8e66afe8e5a993b544 (diff)
catch errors
-rw-r--r--cmd/client/main.go5
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)
+ }
}