mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-10 15:55:32 -04:00
migrate NetworkList to []Network
This commit is contained in:
@@ -17,8 +17,8 @@ import (
|
||||
|
||||
// An Inbound processes inbound connections.
|
||||
type Inbound interface {
|
||||
// Network returns a list of network that this inbound supports. Connections with not-supported networks will not be passed into Process().
|
||||
Network() net.NetworkList
|
||||
// Network returns a list of networks that this inbound supports. Connections with not-supported networks will not be passed into Process().
|
||||
Network() []net.Network
|
||||
|
||||
// Process processes a connection of given network. If necessary, the Inbound can dispatch the connection to an Outbound.
|
||||
Process(context.Context, net.Network, internet.Connection, routing.Dispatcher) error
|
||||
|
||||
Reference in New Issue
Block a user