mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 21:51:23 +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,
|
|
}
|
|
}
|