mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-20 07:04:08 +00:00
support using specific address
This commit is contained in:
1 parent
6c31ff91e6
commit
a4d76dc394
48 files changed
+412
-301
No files matched your search
@@ -10,21 +10,19 @@ import (
|
||||
)
|
||||
|
||||
type InboundConnectionHandler struct {
|
||||
port v2net.Port
|
||||
address v2net.Address
|
||||
ListeningPort v2net.Port
|
||||
ListeningAddress v2net.Address
|
||||
PacketDispatcher dispatcher.PacketDispatcher
|
||||
ConnInput io.Reader
|
||||
ConnOutput io.Writer
|
||||
}
|
||||
|
||||
func (this *InboundConnectionHandler) Listen(address v2net.Address, port v2net.Port) error {
|
||||
this.port = port
|
||||
this.address = address
|
||||
func (this *InboundConnectionHandler) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (this *InboundConnectionHandler) Port() v2net.Port {
|
||||
return this.port
|
||||
return this.ListeningPort
|
||||
}
|
||||
|
||||
func (this *InboundConnectionHandler) Close() {
|
||||
|
||||
Reference in new issue
Block a user