Claire Raymond 10 년 전
부모
커밋
c592d9c246
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 2
      app/packet_dispatcher.go
  2. 4 3
      core.go

+ 1 - 2
app/packet_dispatcher.go

@@ -5,8 +5,7 @@ import (
 	"github.com/v2ray/v2ray-core/transport/ray"
 )
 
-// PacketDispatcher dispatch a packet and possibly further network payload to
-// its destination.
+// PacketDispatcher dispatch a packet and possibly further network payload to its destination.
 type PacketDispatcher interface {
 	DispatchToOutbound(packet v2net.Packet) ray.InboundRay
 }

+ 4 - 3
core.go

@@ -3,6 +3,8 @@ package core
 
 import (
 	"fmt"
+	
+	"github.com/v2ray/v2ray-core/common/platform"
 )
 
 var (
@@ -13,7 +15,6 @@ var (
 )
 
 func PrintVersion() {
-	fmt.Printf("V2Ray %s (%s) %s", version, codename, build)
-	fmt.Println()
-	fmt.Println(intro)
+	fmt.Printf("V2Ray %s (%s) %s%s", version, codename, build, platform.LineSeparator())
+	fmt.Print("%s%s", intro, platform.LineSeparator())
 }