-
Notifications
You must be signed in to change notification settings - Fork 2
/
protoListeners.go
35 lines (32 loc) · 1.22 KB
/
protoListeners.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package proxy
type protoListenerArgs struct {
protocol string
addr string
fn listenerBuilderFN
}
func getProtoListenersArgs(p *Proxy) []protoListenerArgs {
return []protoListenerArgs{
/********** listeners for base transport **********/
{"https", p.HTTPAddr, p.wrapTLSIfNecessary(p.listenHTTP(p.listenTCP))},
{
"https_multiplex",
p.HTTPMultiplexAddr,
p.wrapMultiplexing(p.wrapTLSIfNecessary(p.listenHTTP(p.listenTCP))),
},
{"tlsmasq", p.TLSMasqAddr, p.wrapMultiplexing(p.listenTLSMasq(p.listenTCP))},
{"starbridge", p.StarbridgeAddr, p.wrapMultiplexing(p.listenStarbridge(p.listenTCP))},
{"broflake", p.BroflakeAddr, p.listenBroflake(p.listenTCP)},
{"algeneva", p.AlgenevaAddr, p.wrapMultiplexing(p.listenAlgeneva(p.listenTCP))},
/******************************************************/
{"kcp", p.KCPConf, p.wrapTLSIfNecessary(p.listenKCP)},
{"quic_ietf", p.QUICIETFAddr, p.listenQUICIETF},
{"shadowsocks", p.ShadowsocksAddr, p.listenShadowsocks},
{
"shadowsocks_multiplex",
p.ShadowsocksMultiplexAddr,
p.wrapMultiplexing(p.listenShadowsocks),
},
{"water", p.WaterAddr, p.wrapMultiplexing(p.listenWATER)},
{"vmess", p.VMessAddr, p.wrapMultiplexing(p.listenVMess(p.listenTCP))},
}
}