diff --git a/dailymotion.go b/dailymotion.go index f29dd39..a3e451e 100644 --- a/dailymotion.go +++ b/dailymotion.go @@ -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", diff --git a/openvpn.go b/openvpn.go index afe03ae..fd07259 100644 --- a/openvpn.go +++ b/openvpn.go @@ -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)