From c592d9c2467fa304039b7d0771fc287ac4784c9f Mon Sep 17 00:00:00 2001 From: Claire Raymond Date: Thu, 15 Oct 2015 11:25:57 +0000 Subject: [PATCH] update --- app/packet_dispatcher.go | 3 +-- core.go | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/packet_dispatcher.go b/app/packet_dispatcher.go index 48dcf9e18..62ed936c8 100644 --- a/app/packet_dispatcher.go +++ b/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 } diff --git a/core.go b/core.go index d681ec801..b56a86c7a 100644 --- a/core.go +++ b/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()) }