mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-01 01:44:15 +00:00
Add httpupgrade test
This commit is contained in:
parent
9c6685d2ee
commit
be29cc39d7
3 changed files with 157 additions and 4 deletions
|
@ -97,7 +97,7 @@ func (s *server) keepAccepting() {
|
|||
}
|
||||
}
|
||||
|
||||
func listenHTTPUpgrade(ctx context.Context, address net.Address, port net.Port, streamSettings *internet.MemoryStreamConfig, addConn internet.ConnHandler) (internet.Listener, error) {
|
||||
func ListenHTTPUpgrade(ctx context.Context, address net.Address, port net.Port, streamSettings *internet.MemoryStreamConfig, addConn internet.ConnHandler) (internet.Listener, error) {
|
||||
transportConfiguration := streamSettings.ProtocolSettings.(*Config)
|
||||
if transportConfiguration != nil {
|
||||
if streamSettings.SocketSettings == nil {
|
||||
|
@ -147,5 +147,5 @@ func listenHTTPUpgrade(ctx context.Context, address net.Address, port net.Port,
|
|||
}
|
||||
|
||||
func init() {
|
||||
common.Must(internet.RegisterTransportListener(protocolName, listenHTTPUpgrade))
|
||||
common.Must(internet.RegisterTransportListener(protocolName, ListenHTTPUpgrade))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue