Sfoglia il codice sorgente

Always show running message.

V2Ray 10 anni fa
parent
commit
7cd2f32d7e
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      point.go

+ 6 - 1
point.go

@@ -91,7 +91,12 @@ func (vp *Point) Start() error {
 	}
 
 	return retry.Timed(100 /* times */, 100 /* ms */).On(func() error {
-		return vp.ich.Listen(vp.port)
+		err := vp.ich.Listen(vp.port)
+    if err == nil {
+      log.Warning("Point server started on port %d", vp.port)
+      return nil
+    }
+    return err
 	})
 }