replace log.Fatal with fmt.Fprintf(); os.Exit()
This commit is contained in:
parent
89e4cec024
commit
e7db7b9bba
|
@ -10,7 +10,6 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
|
||||||
"net"
|
"net"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
|
@ -453,7 +452,8 @@ func main() {
|
||||||
//tun := <-connected
|
//tun := <-connected
|
||||||
fmt.Printf("Listening through %s\n", *relay)
|
fmt.Printf("Listening through %s\n", *relay)
|
||||||
err = telebit.ListenAndServe(tun, mux)
|
err = telebit.ListenAndServe(tun, mux)
|
||||||
log.Fatal("Closed server: ", err)
|
fmt.Fprintf(os.Stderr, "Closed server: %s\n", err)
|
||||||
|
os.Exit(exitRetry)
|
||||||
done <- err
|
done <- err
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue