From 9b1855f7194225b7559df77a645bfb0231229dda Mon Sep 17 00:00:00 2001 From: dashangcun <907225865@qq.com> Date: Tue, 14 Jan 2025 15:56:22 +0100 Subject: [PATCH] chore: fix struct field name in comment (#4284) Signed-off-by: dashangcun <907225865@qq.com> --- features/inbound/inbound.go | 2 +- features/routing/context.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/inbound/inbound.go b/features/inbound/inbound.go index fd3a3db5..adcf7571 100644 --- a/features/inbound/inbound.go +++ b/features/inbound/inbound.go @@ -25,7 +25,7 @@ type Handler interface { // xray:api:stable type Manager interface { features.Feature - // GetHandlers returns an InboundHandler for the given tag. + // GetHandler returns an InboundHandler for the given tag. GetHandler(ctx context.Context, tag string) (Handler, error) // AddHandler adds the given handler into this Manager. AddHandler(ctx context.Context, handler Handler) error diff --git a/features/routing/context.go b/features/routing/context.go index e7867c32..e52e2470 100644 --- a/features/routing/context.go +++ b/features/routing/context.go @@ -11,7 +11,7 @@ type Context interface { // GetInboundTag returns the tag of the inbound the connection was from. GetInboundTag() string - // GetSourcesIPs returns the source IPs bound to the connection. + // GetSourceIPs returns the source IPs bound to the connection. GetSourceIPs() []net.IP // GetSourcePort returns the source port of the connection.