File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ func main() {
163
163
alpnMux := gateway .NewALPNMux (logger , gMux )
164
164
165
165
clientTLSListener := alpnMux .For ("multiplexer" )
166
- gatewayListener := alpnMux .For ("http/1.1" )
166
+ gatewayListener := alpnMux .For ("http/1.1" , "" )
167
167
168
168
domain := bundle .Web .Domain
169
169
if * gatewayPort != 443 {
Original file line number Diff line number Diff line change @@ -80,9 +80,11 @@ func (a *ALPN) Serve(ctx context.Context) {
80
80
}
81
81
}
82
82
83
- func (a * ALPN ) For (proto string ) net.Listener {
83
+ func (a * ALPN ) For (protos ... string ) net.Listener {
84
84
ch := make (chan net.Conn , 32 )
85
- a .protos .Store (proto , ch )
85
+ for _ , proto := range protos {
86
+ a .protos .Store (proto , ch )
87
+ }
86
88
return & protoListener {
87
89
l : a .listener ,
88
90
c : ch ,
You can’t perform that action at this time.
0 commit comments