Improve config struct

This commit is contained in:
世界
2022-07-25 16:18:11 +08:00
parent 1f05420745
commit cc78f0347d
22 changed files with 187 additions and 362 deletions
+10
View File
@@ -0,0 +1,10 @@
package option
type TunInboundOptions struct {
InterfaceName string `json:"interface_name,omitempty"`
MTU uint32 `json:"mtu,omitempty"`
Inet4Address *ListenPrefix `json:"inet4_address,omitempty"`
Inet6Address *ListenPrefix `json:"inet6_address,omitempty"`
AutoRoute bool `json:"auto_route,omitempty"`
InboundOptions
}