github.com/metacubex/mihomo@v1.18.5/listener/inbound/mux.go (about) 1 package inbound 2 3 import "github.com/metacubex/mihomo/listener/sing" 4 5 type MuxOption struct { 6 Padding bool `inbound:"padding,omitempty"` 7 Brutal BrutalOptions `inbound:"brutal,omitempty"` 8 } 9 10 type BrutalOptions struct { 11 Enabled bool `inbound:"enabled,omitempty"` 12 Up string `inbound:"up,omitempty"` 13 Down string `inbound:"down,omitempty"` 14 } 15 16 func (m MuxOption) Build() sing.MuxOption { 17 return sing.MuxOption{ 18 Padding: m.Padding, 19 Brutal: sing.BrutalOptions{ 20 Enabled: m.Brutal.Enabled, 21 Up: m.Brutal.Up, 22 Down: m.Brutal.Down, 23 }, 24 } 25 }