mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 12:44:22 +00:00
style: gofmt -s (doc-comment list separator, struct field alignment)
This commit is contained in:
parent
f0e459e51e
commit
d56505004e
2 changed files with 6 additions and 5 deletions
|
|
@ -307,6 +307,7 @@ func StripVlessInboundEncryption(settings string) (string, bool) {
|
||||||
// inbound with "users must have empty method" when a client carries
|
// inbound with "users must have empty method" when a client carries
|
||||||
// one — strip stale entries left over from a switch off a legacy
|
// one — strip stale entries left over from a switch off a legacy
|
||||||
// cipher.
|
// cipher.
|
||||||
|
//
|
||||||
// Returns the rewritten settings string and true when anything changed.
|
// Returns the rewritten settings string and true when anything changed.
|
||||||
func HealShadowsocksClientMethods(settings string) (string, bool) {
|
func HealShadowsocksClientMethods(settings string) (string, bool) {
|
||||||
if settings == "" {
|
if settings == "" {
|
||||||
|
|
|
||||||
|
|
@ -26,11 +26,11 @@ func TestBuildSubURIBase(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
cases := []struct {
|
cases := []struct {
|
||||||
name string
|
name string
|
||||||
subDomain, port string
|
subDomain, port string
|
||||||
cert, key string
|
cert, key string
|
||||||
host string
|
host string
|
||||||
want string
|
want string
|
||||||
}{
|
}{
|
||||||
{"no domain, plain, non-standard port", "", "2096", "", "", "panel.example.com", "http://panel.example.com:2096"},
|
{"no domain, plain, non-standard port", "", "2096", "", "", "panel.example.com", "http://panel.example.com:2096"},
|
||||||
{"host carries a port — stripped, sub port applied", "", "2096", "", "", "panel.example.com:9999", "http://panel.example.com:2096"},
|
{"host carries a port — stripped, sub port applied", "", "2096", "", "", "panel.example.com:9999", "http://panel.example.com:2096"},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue