Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xray/api.go')
-rw-r--r--xray/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xray/api.go b/xray/api.go
index 95d8c473..2312d2e4 100644
--- a/xray/api.go
+++ b/xray/api.go
@@ -116,7 +116,7 @@ func (x *XrayAPI) AddUser(Protocol string, inboundTag string, user map[string]an
}
// Add testseed if provided
if testseedVal, ok := user["testseed"]; ok {
- if testseedArr, ok := testseedVal.([]interface{}); ok && len(testseedArr) >= 4 {
+ if testseedArr, ok := testseedVal.([]any); ok && len(testseedArr) >= 4 {
testseed := make([]uint32, len(testseedArr))
for i, v := range testseedArr {
if num, ok := v.(float64); ok {