mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
update
This commit is contained in:
@@ -73,7 +73,7 @@ type TlsSettings struct {
|
|||||||
ServerName string `json:"server_name"`
|
ServerName string `json:"server_name"`
|
||||||
ServerPort string `json:"server_port"`
|
ServerPort string `json:"server_port"`
|
||||||
ShortId string `json:"short_id"`
|
ShortId string `json:"short_id"`
|
||||||
PrivateKey string `json:"-"`
|
PrivateKey string `json:"private_key"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type RealityConfig struct {
|
type RealityConfig struct {
|
||||||
@@ -148,8 +148,10 @@ func (c *Client) GetNodeInfo() (node *NodeInfo, err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if node.Security == Reality {
|
if node.Security == Reality {
|
||||||
key := crypt.GenX25519Private([]byte("vless" + c.Token))
|
if rsp.TlsSettings.PrivateKey == "" {
|
||||||
rsp.TlsSettings.PrivateKey = base64.RawURLEncoding.EncodeToString(key)
|
key := crypt.GenX25519Private([]byte("vless" + c.Token))
|
||||||
|
rsp.TlsSettings.PrivateKey = base64.RawURLEncoding.EncodeToString(key)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case "shadowsocks":
|
case "shadowsocks":
|
||||||
rsp := &ShadowsocksNode{}
|
rsp := &ShadowsocksNode{}
|
||||||
|
|||||||
Reference in New Issue
Block a user