replace log.Fatal with fmt.Fprintf(); os.Exit()

This commit is contained in:
AJ ONeal 2020-08-17 15:19:17 -06:00
parent 89e4cec024
commit e7db7b9bba
1 changed files with 2 additions and 2 deletions

View File

@ -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
}()