From e7db7b9bba66fdb551c3d00b93186c22f0353f05 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 17 Aug 2020 15:19:17 -0600 Subject: [PATCH] replace log.Fatal with fmt.Fprintf(); os.Exit() --- cmd/telebit/telebit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/telebit/telebit.go b/cmd/telebit/telebit.go index 117ad09..7d47bd5 100644 --- a/cmd/telebit/telebit.go +++ b/cmd/telebit/telebit.go @@ -10,7 +10,6 @@ import ( "flag" "fmt" "io" - "log" "net" "net/url" "os" @@ -453,7 +452,8 @@ func main() { //tun := <-connected fmt.Printf("Listening through %s\n", *relay) err = telebit.ListenAndServe(tun, mux) - log.Fatal("Closed server: ", err) + fmt.Fprintf(os.Stderr, "Closed server: %s\n", err) + os.Exit(exitRetry) done <- err }()