mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-07 21:09:53 +00:00
Update application version and enhance error handling
The commit increases the version number from 0.9.1 to 0.9.2 in version.go. Additionally, an error check has been added in x25519.go to validate the private key size. Also, panel.go has been modified to accept both "NewV2board" and "V2board" as valid panel types.
This commit is contained in:
parent
cac4288e07
commit
97d89549dd
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
version = "0.9.1"
|
||||
version = "0.9.2"
|
||||
codename = "XrayR"
|
||||
intro = "A Xray backend that supports many panels"
|
||||
)
|
||||
|
@ -3,6 +3,7 @@ package cmd
|
||||
import (
|
||||
"crypto/rand"
|
||||
"encoding/base64"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
@ -39,6 +40,9 @@ func x25519() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if len(p) != curve25519.ScalarSize {
|
||||
return errors.New("invalid private key")
|
||||
}
|
||||
privateKey = p
|
||||
}
|
||||
|
||||
|
@ -177,7 +177,7 @@ func (p *Panel) Start() {
|
||||
switch nodeConfig.PanelType {
|
||||
case "SSpanel":
|
||||
apiClient = sspanel.New(nodeConfig.ApiConfig)
|
||||
case "NewV2board":
|
||||
case "NewV2board", "V2board":
|
||||
apiClient = newV2board.New(nodeConfig.ApiConfig)
|
||||
case "PMpanel":
|
||||
apiClient = pmpanel.New(nodeConfig.ApiConfig)
|
||||
|
Loading…
x
Reference in New Issue
Block a user