Parcourir la source

Always show running message.

V2Ray il y a 10 ans
Parent
commit
7cd2f32d7e
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  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
 	})
 }