mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-29 15:49:49 +00:00
update: add error message for none user
This commit is contained in:
parent
9c6ae5b7ab
commit
0c2d03f3e0
@ -3,6 +3,7 @@ package v2board
|
||||
import (
|
||||
"bufio"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
@ -338,6 +339,8 @@ func (c *APIClient) ParseSSNodeResponse() (*api.NodeInfo, error) {
|
||||
if len(*userInfo) > 0 {
|
||||
port = (*userInfo)[0].Port
|
||||
method = (*userInfo)[0].Method
|
||||
} else {
|
||||
return nil, errors.New("the number of node users is 0")
|
||||
}
|
||||
|
||||
// Create GeneralNodeInfo
|
||||
|
Loading…
x
Reference in New Issue
Block a user