mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-14 00:51:12 +03:00
22 lines
566 B
Go
22 lines
566 B
Go
package option
|
|
|
|
import "github.com/sagernet/sing/common/json/badoption"
|
|
|
|
type TunnelClientEndpointOptions struct {
|
|
UUID string `json:"uuid"`
|
|
Key string `json:"key"`
|
|
Outbound Outbound `json:"outbound"`
|
|
}
|
|
|
|
type TunnelServerEndpointOptions struct {
|
|
UUID string `json:"uuid"`
|
|
Users []TunnelUser `json:"users"`
|
|
Inbound Inbound `json:"inbound"`
|
|
ConnectTimeout badoption.Duration `json:"connect_timeout,omitempty"`
|
|
}
|
|
|
|
type TunnelUser struct {
|
|
UUID string `json:"uuid"`
|
|
Key string `json:"key"`
|
|
}
|