mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-06 00:31:03 +00:00
prefer interface over struct
This commit is contained in:
1 parent
823cbf1509
commit
cb16047cf0
12 files changed
+88
-59
No files matched your search
@@ -19,7 +19,7 @@ func (handler *InboundConnectionHandler) Listen(port uint16) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (handler *InboundConnectionHandler) Communicate(dest *v2net.Destination) error {
|
||||
func (handler *InboundConnectionHandler) Communicate(dest v2net.Destination) error {
|
||||
ray := handler.Server.NewInboundConnectionAccepted(dest)
|
||||
|
||||
input := ray.InboundInput()
|
||||
|
||||
Reference in new issue
Block a user