mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-04 09:17:32 -05:00
24 lines
472 B
Go
24 lines
472 B
Go
package json
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
type OutboundDetourConfig struct {
|
|
ProtocolValue string `json:"protocol"`
|
|
TagValue string `json:"tag"`
|
|
SettingsValue json.RawMessage `json:"settings"`
|
|
}
|
|
|
|
func (this *OutboundDetourConfig) Protocol() string {
|
|
return this.ProtocolValue
|
|
}
|
|
|
|
func (this *OutboundDetourConfig) Tag() string {
|
|
return this.TagValue
|
|
}
|
|
|
|
func (this *OutboundDetourConfig) Settings() []byte {
|
|
return []byte(this.SettingsValue)
|
|
}
|