Improve config struct

This commit is contained in:
世界 2022-07-25 11:29:46 +08:00
parent 1f05420745
commit cc78f0347d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
22 changed files with 187 additions and 362 deletions

14
option/direct.go Normal file
View file

@ -0,0 +1,14 @@
package option
type DirectInboundOptions struct {
ListenOptions
Network NetworkList `json:"network,omitempty"`
OverrideAddress string `json:"override_address,omitempty"`
OverridePort uint16 `json:"override_port,omitempty"`
}
type DirectOutboundOptions struct {
OutboundDialerOptions
OverrideAddress string `json:"override_address,omitempty"`
OverridePort uint16 `json:"override_port,omitempty"`
}