mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-10-27 08:15:01 +03:00
style: trim MASQUE and XDRIVE comment blocks to two lines
The MASQUE and XDRIVE commits left four comment blocks over the two-line cap CLAUDE.md sets for committed Go/TS.
This commit is contained in:
@@ -816,11 +816,8 @@ func mergeStreamFromMaster(childStream, masterStream string) string {
|
||||
return string(out)
|
||||
}
|
||||
|
||||
// GetLink dispatches to the protocol-specific generator for one (inbound, client)
|
||||
// pair. Returns "" when the inbound's protocol doesn't produce a subscription URL
|
||||
// (socks, http, mixed, wireguard, dokodemo, tunnel) or its transport has no link
|
||||
// format (xdrive). The returned string may contain multiple `\n`-separated URLs
|
||||
// when the inbound has externalProxy set.
|
||||
// GetLink returns one (inbound, client) pair's links, `\n`-separated per externalProxy;
|
||||
// "" for a protocol (socks, http, mixed, wireguard, tunnel) or transport (xdrive) without one.
|
||||
func (s *SubService) GetLink(inbound *model.Inbound, email string) string {
|
||||
if network, _ := unmarshalStreamSettings(inbound.StreamSettings)["network"].(string); network == "xdrive" {
|
||||
return ""
|
||||
|
||||
@@ -6,9 +6,8 @@ import (
|
||||
"github.com/xtls/xray-core/proxy/masque"
|
||||
)
|
||||
|
||||
// Panel paths hand AddUser the client's "password"; the hot diff hands it the user
|
||||
// as GetXrayConfig emitted it, keyed "pass". Without an account the core adds a
|
||||
// MASQUE user it can never authenticate.
|
||||
// Panel paths hand AddUser the client's "password", the hot diff the emitted user's
|
||||
// "pass"; without an account the core adds a MASQUE user it can never authenticate.
|
||||
func TestBuildUserAccountMasque(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
|
||||
Reference in New Issue
Block a user