Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support ss altport #13

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions api/apimodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import (
"encoding/json"
"fmt"
"regexp"

"github.com/xtls/xray-core/infra/conf"
Expand Down Expand Up @@ -62,6 +63,7 @@
NodeType string // Must be V2ray, Trojan, and Shadowsocks
NodeID string
Port uint32
AltPort uint16 // AltPort is used for Shadowsocks-Plugin
SpeedLimit uint64 // Bps
AlterID uint16
TransportProtocol string
Expand Down Expand Up @@ -100,6 +102,11 @@
RejectUnknownSni bool
}

func (n *NodeInfo) Tag(listenIP string, port uint32) string {
return fmt.Sprintf("%s_%s_%d", n.NodeType, listenIP, port)

}

Check failure on line 108 in api/apimodel.go

View workflow job for this annotation

GitHub Actions / lint

unnecessary trailing newline (whitespace)

type UserInfo struct {
UID int
Email string
Expand Down
Loading
Loading