From bc827396c2029cc098d939fda13dccc82c7c47ea Mon Sep 17 00:00:00 2001 From: Murtaza Aliakbar Date: Sun, 20 Oct 2024 02:38:18 +0530 Subject: [PATCH] tunnel: impl Handle() --- tunnel/dialer.go | 6 ++++++ 1 file changed, 6 insertions(+) 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