Skip to content

Commit bc82739

Browse files
committed
tunnel: impl Handle()
1 parent 95b079a commit bc82739

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tunnel/dialer.go

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"net"
1111
"net/netip"
1212

13+
"github.com/celzero/firestack/intra/core"
1314
"github.com/celzero/firestack/intra/log"
1415
"github.com/celzero/firestack/intra/protect"
1516
"github.com/celzero/firestack/intra/settings"
@@ -21,6 +22,11 @@ import (
2122

2223
var _ protect.RDialer = (*gtunnel)(nil)
2324

25+
// Handle implements protect.RDialer.
26+
func (h *gtunnel) Handle() uintptr {
27+
return core.Loc(h)
28+
}
29+
2430
// Dial implements protect.RDialer.
2531
func (t *gtunnel) Dial(network, addr string) (protect.Conn, error) {
2632
taddr, proto := fulladdr(addr) // taddr may be nil

0 commit comments

Comments
 (0)