This commit is contained in:
Xavier Henner 2019-08-19 13:06:10 +02:00
parent e9f6a04864
commit 53ec762bbb
2 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,7 @@ func (s *DailymotionVPN) ServerList() (error, *map[string]string) {
"Silicon Valley 1": "gate-01.sv6.dailymotion.com",
"Singapore 1": "gate-01.sg1.dailymotion.com",
"Tokyo 1": "gate-01.ty4.dailymotion.com",
"Paris 2": "gate-02.dc3.dailymotion.com",
"Paris 2": "gate-02.ix7.dailymotion.com",
"New-York 2": "gate-02.nyc.dailymotion.com",
"Silicon Valley 2": "gate-02.sv6.dailymotion.com",
"Singapore 2": "gate-02.sg1.dailymotion.com",

View File

@ -114,9 +114,11 @@ func (v *OpenVpnSrv) GetPid() error {
if err == nil {
v.mgt.SetPid(v, pid)
v.mgt.Debug("Found PID", pid)
v.Lock()
if v.Identifier == "Unknown" {
v.Identifier = fmt.Sprintf("Unknown-%d", pid)
}
v.Unlock()
}
return err
}
@ -139,7 +141,9 @@ func (v *OpenVpnSrv) GetEcho() {
switch match[1] {
case "vpnidentifier":
v.Lock()
v.Identifier = match[2]
v.Unlock()
case "vpnprovider":
if err := v.mgt.getServerList(match[2]); err != nil {
v.mgt.Debug(err)