From 4c7cf3aece1791f579a34278d86471f55b3d928f Mon Sep 17 00:00:00 2001 From: henrylee2cn Date: Mon, 28 Oct 2019 20:57:03 +0800 Subject: [PATCH] feat(auth): Add Session.LocalAddr #70 Change-Id: Ie5fc47ee3efe9cbd8526389714e964c67a2a83c3 --- plugin/auth/auth.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/auth/auth.go b/plugin/auth/auth.go index 66126aad..7b028f38 100644 --- a/plugin/auth/auth.go +++ b/plugin/auth/auth.go @@ -57,6 +57,8 @@ type ( Peer() tp.Peer // SetID sets the session id. SetID(newID string) + // LocalAddr returns the local network address. + LocalAddr() net.Addr // RemoteAddr returns the remote network address. RemoteAddr() net.Addr // Swap returns custom data swap of the session(socket).