mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-29 23:59: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 (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
@ -338,6 +339,8 @@ func (c *APIClient) ParseSSNodeResponse() (*api.NodeInfo, error) {
|
|||||||
if len(*userInfo) > 0 {
|
if len(*userInfo) > 0 {
|
||||||
port = (*userInfo)[0].Port
|
port = (*userInfo)[0].Port
|
||||||
method = (*userInfo)[0].Method
|
method = (*userInfo)[0].Method
|
||||||
|
} else {
|
||||||
|
return nil, errors.New("the number of node users is 0")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create GeneralNodeInfo
|
// Create GeneralNodeInfo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user