Skip to content

Commit

Permalink
tunnel: impl Handle()
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Oct 19, 2024
1 parent 95b079a commit bc82739
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tunnel/dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

1 comment on commit bc82739

@ignoramous
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.