|
|
@@ -12,14 +12,14 @@ const (
|
|
12
|
12
|
)
|
|
13
|
13
|
|
|
14
|
14
|
type Rustdesk struct {
|
|
15
|
|
- IdServer string `mapstructure:"id-server"`
|
|
16
|
|
- IdServerPort int `mapstructure:"-"`
|
|
17
|
|
- RelayServer string `mapstructure:"relay-server"`
|
|
18
|
|
- RelayPort int `mapstructure:"-"`
|
|
19
|
|
- ApiServer string `mapstructure:"api-server"`
|
|
20
|
|
- Key string `mapstructure:"key"`
|
|
21
|
|
- KeyFile string `mapstructure:"key-file"`
|
|
22
|
|
- Personal int `mapstructure:"personal"`
|
|
|
15
|
+ IdServer string `mapstructure:"id-server"`
|
|
|
16
|
+ IdServerPort int `mapstructure:"-"`
|
|
|
17
|
+ RelayServer string `mapstructure:"relay-server"`
|
|
|
18
|
+ RelayServerPort int `mapstructure:"-"`
|
|
|
19
|
+ ApiServer string `mapstructure:"api-server"`
|
|
|
20
|
+ Key string `mapstructure:"key"`
|
|
|
21
|
+ KeyFile string `mapstructure:"key-file"`
|
|
|
22
|
+ Personal int `mapstructure:"personal"`
|
|
23
|
23
|
//webclient-magic-queryonline
|
|
24
|
24
|
WebclientMagicQueryonline int `mapstructure:"webclient-magic-queryonline"`
|
|
25
|
25
|
}
|
|
|
@@ -50,8 +50,8 @@ func (rd *Rustdesk) ParsePort() {
|
|
50
|
50
|
|
|
51
|
51
|
relayres := strings.Split(rd.RelayServer, ":")
|
|
52
|
52
|
if len(relayres) == 1 {
|
|
53
|
|
- rd.RelayPort = DefaultRelayServerPort
|
|
|
53
|
+ rd.RelayServerPort = DefaultRelayServerPort
|
|
54
|
54
|
} else if len(relayres) == 2 {
|
|
55
|
|
- rd.RelayPort, _ = strconv.Atoi(relayres[1])
|
|
|
55
|
+ rd.RelayServerPort, _ = strconv.Atoi(relayres[1])
|
|
56
|
56
|
}
|
|
57
|
57
|
}
|