mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
proxy: exit glider when it fails to listen (#284)
This commit is contained in:
1 parent
3c431ee6e1
commit
b502b129b7
16 files changed
+18
-18
No files matched your search
+1
-1
@@ -163,7 +163,7 @@ func NewKCPServer(s string, p proxy.Proxy) (proxy.Server, error) {
|
||||
func (s *KCP) ListenAndServe() {
|
||||
l, err := kcp.ListenWithOptions(s.addr, s.block, s.dataShards, s.parityShards)
|
||||
if err != nil {
|
||||
log.F("[kcp] failed to listen on %s: %v", s.addr, err)
|
||||
log.Fatalf("[kcp] failed to listen on %s: %v", s.addr, err)
|
||||
return
|
||||
}
|
||||
defer l.Close()
|
||||
|
||||
Reference in new issue
Block a user