mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-07-17 10:06:08 +00:00
refactor(frontend): move form-item hints from extra to tooltip
Switch reality target, node options, and WARP auto-update-IP hints from inline extra text to label tooltips for a cleaner form layout.
This commit is contained in:
@@ -397,11 +397,11 @@ func parseShadowsocks(link string) (*ParseResult, error) {
|
||||
}
|
||||
|
||||
func splitMethodPass(userInfo string) (string, string) {
|
||||
colon := strings.Index(userInfo, ":")
|
||||
if colon < 0 {
|
||||
before, after, ok := strings.Cut(userInfo, ":")
|
||||
if !ok {
|
||||
return "2022-blake3-aes-128-gcm", userInfo // guess
|
||||
}
|
||||
return userInfo[:colon], userInfo[colon+1:]
|
||||
return before, after
|
||||
}
|
||||
|
||||
// --- hysteria2 ---
|
||||
|
||||
Reference in New Issue
Block a user