mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-23 23:30:25 +08:00
临时提交
This commit is contained in:
14
internal/configs/protocol_unix_config.go
Normal file
14
internal/configs/protocol_unix_config.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package configs
|
||||
|
||||
type UnixProtocolConfig struct {
|
||||
IsOn bool `yaml:"isOn"` // 是否开启
|
||||
Listen []string `yaml:"listen" json:"listen"` // 监听地址
|
||||
}
|
||||
|
||||
func (this *UnixProtocolConfig) Addresses() []string {
|
||||
result := []string{}
|
||||
for _, listen := range this.Listen {
|
||||
result = append(result, ProtocolUnix+":"+listen)
|
||||
}
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user