mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 09:18:34 +00:00
parent
800b3bd3fe
commit
9ad26fa049
10 changed files with 14 additions and 14 deletions
|
@ -58,7 +58,7 @@ type Handler struct {
|
|||
downlinkCounter stats.Counter
|
||||
}
|
||||
|
||||
// NewHandler create a new Handler based on the given configuration.
|
||||
// NewHandler creates a new Handler based on the given configuration.
|
||||
func NewHandler(ctx context.Context, config *core.OutboundHandlerConfig) (outbound.Handler, error) {
|
||||
v := core.MustFromContext(ctx)
|
||||
uplinkCounter, downlinkCounter := getStatCounter(v, config.Tag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue