mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 05:31:18 +08:00
26 lines
574 B
Go
26 lines
574 B
Go
package inbound
|
|
|
|
import "github.com/metacubex/mihomo/listener/sing"
|
|
|
|
type MuxOption struct {
|
|
Padding bool `inbound:"padding,omitempty"`
|
|
Brutal BrutalOptions `inbound:"brutal,omitempty"`
|
|
}
|
|
|
|
type BrutalOptions struct {
|
|
Enabled bool `inbound:"enabled,omitempty"`
|
|
Up string `inbound:"up,omitempty"`
|
|
Down string `inbound:"down,omitempty"`
|
|
}
|
|
|
|
func (m MuxOption) Build() sing.MuxOption {
|
|
return sing.MuxOption{
|
|
Padding: m.Padding,
|
|
Brutal: sing.BrutalOptions{
|
|
Enabled: m.Brutal.Enabled,
|
|
Up: m.Brutal.Up,
|
|
Down: m.Brutal.Down,
|
|
},
|
|
}
|
|
}
|