chore: listeners support shadowsocks/vmess
This commit is contained in:
@ -31,10 +31,10 @@ func (l *Listener) Close() error {
|
||||
|
||||
func New(addr string, in chan<- C.ConnContext, additions ...inbound.Addition) (*Listener, error) {
|
||||
if len(additions) == 0 {
|
||||
additions = []inbound.Addition{{
|
||||
InName: "DEFAULT-REDIR",
|
||||
SpecialRules: "",
|
||||
}}
|
||||
additions = []inbound.Addition{
|
||||
inbound.WithInName("DEFAULT-REDIR"),
|
||||
inbound.WithSpecialRules(""),
|
||||
}
|
||||
}
|
||||
l, err := net.Listen("tcp", addr)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user