mirror of https://github.com/v2ray/v2ray-core
update
parent
9071b3ea10
commit
c592d9c246
|
@ -5,8 +5,7 @@ import (
|
||||||
"github.com/v2ray/v2ray-core/transport/ray"
|
"github.com/v2ray/v2ray-core/transport/ray"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PacketDispatcher dispatch a packet and possibly further network payload to
|
// PacketDispatcher dispatch a packet and possibly further network payload to its destination.
|
||||||
// its destination.
|
|
||||||
type PacketDispatcher interface {
|
type PacketDispatcher interface {
|
||||||
DispatchToOutbound(packet v2net.Packet) ray.InboundRay
|
DispatchToOutbound(packet v2net.Packet) ray.InboundRay
|
||||||
}
|
}
|
||||||
|
|
7
core.go
7
core.go
|
@ -3,6 +3,8 @@ package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/v2ray/v2ray-core/common/platform"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -13,7 +15,6 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func PrintVersion() {
|
func PrintVersion() {
|
||||||
fmt.Printf("V2Ray %s (%s) %s", version, codename, build)
|
fmt.Printf("V2Ray %s (%s) %s%s", version, codename, build, platform.LineSeparator())
|
||||||
fmt.Println()
|
fmt.Print("%s%s", intro, platform.LineSeparator())
|
||||||
fmt.Println(intro)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue