mirror of
https://github.com/ginuerzh/gost.git
synced 2026-10-19 16:14:35 +00:00
add host for client handshake
This commit is contained in:
@@ -11,6 +11,7 @@ type Node struct {
|
||||
ID int
|
||||
Addr string
|
||||
IPs []string
|
||||
Host string
|
||||
Protocol string
|
||||
Transport string
|
||||
Remote string // remote address, used by tcp/udp port forwarding
|
||||
@@ -19,7 +20,7 @@ type Node struct {
|
||||
DialOptions []DialOption
|
||||
HandshakeOptions []HandshakeOption
|
||||
Client *Client
|
||||
IPSelector IPSelector
|
||||
Selector IPSelector
|
||||
}
|
||||
|
||||
// ParseNode parses the node info.
|
||||
@@ -40,6 +41,7 @@ func ParseNode(s string) (node Node, err error) {
|
||||
|
||||
node = Node{
|
||||
Addr: u.Host,
|
||||
Host: u.Host,
|
||||
Remote: strings.Trim(u.EscapedPath(), "/"),
|
||||
Values: u.Query(),
|
||||
User: u.User,
|
||||
|
||||
Reference in New Issue
Block a user