Skip to content

Commit a83253f

Browse files
authored
VLESS Reverse Proxy: Forbid reverse-proxy UUID using forward-proxy, enabled by default
https://t.me/projectXtls/1070 #5101 (comment)
1 parent 2969a18 commit a83253f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

proxy/vless/inbound/inbound.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,10 @@ func (h *Handler) Process(ctx context.Context, network net.Network, connection s
538538

539539
account := request.User.Account.(*vless.MemoryAccount)
540540

541+
if account.Reverse != nil && request.Command != protocol.RequestCommandRvs {
542+
return errors.New("for safety reasons, user " + account.ID.String() + " is not allowed to use forward proxy")
543+
}
544+
541545
responseAddons := &encoding.Addons{
542546
// Flow: requestAddons.Flow,
543547
}

0 commit comments

Comments
 (0)