diff --git a/tunnel/dialer.go b/tunnel/dialer.go index 89c997f0..a8f7f0e9 100644 --- a/tunnel/dialer.go +++ b/tunnel/dialer.go @@ -10,6 +10,7 @@ import ( "net" "net/netip" + "github.com/celzero/firestack/intra/core" "github.com/celzero/firestack/intra/log" "github.com/celzero/firestack/intra/protect" "github.com/celzero/firestack/intra/settings" @@ -21,6 +22,11 @@ import ( var _ protect.RDialer = (*gtunnel)(nil) +// Handle implements protect.RDialer. +func (h *gtunnel) Handle() uintptr { + return core.Loc(h) +} + // Dial implements protect.RDialer. func (t *gtunnel) Dial(network, addr string) (protect.Conn, error) { taddr, proto := fulladdr(addr) // taddr may be nil