mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-30 23:37:44 +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
+15
-7
@@ -8,11 +8,19 @@ import (
|
||||
"github.com/v2ray/v2ray-core/transport"
|
||||
)
|
||||
|
||||
type ConnectionConfig struct {
|
||||
type InboundConnectionConfig struct {
|
||||
Port v2net.Port
|
||||
ListenOn v2net.Address
|
||||
Protocol string
|
||||
Settings []byte
|
||||
}
|
||||
|
||||
type OutboundConnectionConfig struct {
|
||||
Protocol string
|
||||
SendThrough v2net.Address
|
||||
Settings []byte
|
||||
}
|
||||
|
||||
type LogConfig struct {
|
||||
AccessLog string
|
||||
ErrorLog string
|
||||
@@ -41,19 +49,19 @@ type InboundDetourConfig struct {
|
||||
}
|
||||
|
||||
type OutboundDetourConfig struct {
|
||||
Protocol string
|
||||
Tag string
|
||||
Settings []byte
|
||||
Protocol string
|
||||
SendThrough v2net.Address
|
||||
Tag string
|
||||
Settings []byte
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Port v2net.Port
|
||||
ListenOn v2net.Address
|
||||
LogConfig *LogConfig
|
||||
RouterConfig *router.Config
|
||||
DNSConfig *dns.Config
|
||||
InboundConfig *ConnectionConfig
|
||||
OutboundConfig *ConnectionConfig
|
||||
InboundConfig *InboundConnectionConfig
|
||||
OutboundConfig *OutboundConnectionConfig
|
||||
InboundDetours []*InboundDetourConfig
|
||||
OutboundDetours []*OutboundDetourConfig
|
||||
TransportConfig *transport.Config
|
||||
|
||||
Reference in new issue
Block a user