mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-14 05:11:17 +08:00
21 lines
294 B
Go
21 lines
294 B
Go
package gun
|
|
|
|
import (
|
|
"golang.org/x/net/http2"
|
|
"net"
|
|
)
|
|
|
|
type TransportWrap struct {
|
|
*http2.Transport
|
|
remoteAddr net.Addr
|
|
localAddr net.Addr
|
|
}
|
|
|
|
func (tw *TransportWrap) RemoteAddr() net.Addr {
|
|
return tw.remoteAddr
|
|
}
|
|
|
|
func (tw *TransportWrap) LocalAddr() net.Addr {
|
|
return tw.localAddr
|
|
}
|