mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
15 lines
238 B
Go
15 lines
238 B
Go
package adapters
|
|
|
|
import (
|
|
"net"
|
|
"net/http"
|
|
)
|
|
|
|
// NewHTTPS is HTTPAdapter generator
|
|
func NewHTTPS(request *http.Request, conn net.Conn) *SocketAdapter {
|
|
return &SocketAdapter{
|
|
metadata: parseHTTPAddr(request),
|
|
conn: conn,
|
|
}
|
|
}
|