CyberGhost update

This commit is contained in:
Xavier Henner 2023-08-28 11:52:42 +02:00
parent e7ab86b972
commit 9cb6a73332
3 changed files with 31 additions and 30 deletions

View File

@ -67,34 +67,34 @@ func (s *CyberGhost) ServerList() (error, *map[string]string) {
"Europe/Ukraine": "87-1-ua.cg-dialup.net",
"Europe/United Arab Emirates": "87-1-ae.cg-dialup.net",
"Europe/United Kingdom": "87-1-gb.cg-dialup.net",
"USA/Argentina": "94-1-ar.cg-dialup.net",
"USA/Bahamas": "94-1-bs.cg-dialup.net",
"USA/Brazil": "94-1-br.cg-dialup.net",
"USA/Canada": "94-1-ca.cg-dialup.net",
"USA/Mexico": "94-1-mx.cg-dialup.net",
"USA/United States": "94-1-us.cg-dialup.net",
"USA/United States Islands": "94-1-um.cg-dialup.net",
"USA/Venezuela": "94-1-ve.cg-dialup.net",
"Asia/Australia": "95-1-au.cg-dialup.net",
"Asia/Bangladesh": "95-1-bd.cg-dialup.net",
"Asia/Cambodia": "95-1-kh.cg-dialup.net",
"Asia/China": "95-1-cn.cg-dialup.net",
"Asia/Hong Kong": "95-1-hk.cg-dialup.net",
"Asia/Indonesia": "95-1-id.cg-dialup.net",
"Asia/Iran": "95-1-ir.cg-dialup.net",
"Asia/Japan": "95-1-jp.cg-dialup.net",
"Asia/Kenya": "95-1-ke.cg-dialup.net",
"Asia/Korea": "95-1-kr.cg-dialup.net",
"Asia/Macao": "95-1-mo.cg-dialup.net",
"Asia/Malaysia": "95-1-my.cg-dialup.net",
"Asia/Mongolia": "95-1-mn.cg-dialup.net",
"Asia/New Zealand": "95-1-nz.cg-dialup.net",
"Asia/Philippines": "95-1-ph.cg-dialup.net",
"Asia/Singapore": "95-1-sg.cg-dialup.net",
"Asia/South Africa": "95-1-za.cg-dialup.net",
"Asia/Taiwan": "95-1-tw.cg-dialup.net",
"Asia/Thailand": "95-1-th.cg-dialup.net",
"Asia/Vietnam": "95-1-vn.cg-dialup.net",
"USA/Argentina": "87-1-ar.cg-dialup.net",
"USA/Bahamas": "87-1-bs.cg-dialup.net",
"USA/Brazil": "87-1-br.cg-dialup.net",
"USA/Canada": "87-1-ca.cg-dialup.net",
"USA/Mexico": "87-1-mx.cg-dialup.net",
"USA/United States": "87-1-us.cg-dialup.net",
"USA/United States Islands": "87-1-um.cg-dialup.net",
"USA/Venezuela": "87-1-ve.cg-dialup.net",
"Asia/Australia": "87-1-au.cg-dialup.net",
"Asia/Bangladesh": "87-1-bd.cg-dialup.net",
"Asia/Cambodia": "87-1-kh.cg-dialup.net",
"Asia/China": "87-1-cn.cg-dialup.net",
"Asia/Hong Kong": "87-1-hk.cg-dialup.net",
"Asia/Indonesia": "87-1-id.cg-dialup.net",
"Asia/Iran": "87-1-ir.cg-dialup.net",
"Asia/Japan": "87-1-jp.cg-dialup.net",
"Asia/Kenya": "87-1-ke.cg-dialup.net",
"Asia/Korea": "87-1-kr.cg-dialup.net",
"Asia/Macao": "87-1-mo.cg-dialup.net",
"Asia/Malaysia": "87-1-my.cg-dialup.net",
"Asia/Mongolia": "87-1-mn.cg-dialup.net",
"Asia/New Zealand": "87-1-nz.cg-dialup.net",
"Asia/Philippines": "87-1-ph.cg-dialup.net",
"Asia/Singapore": "87-1-sg.cg-dialup.net",
"Asia/South Africa": "87-1-za.cg-dialup.net",
"Asia/Taiwan": "87-1-tw.cg-dialup.net",
"Asia/Thailand": "87-1-th.cg-dialup.net",
"Asia/Vietnam": "87-1-vn.cg-dialup.net",
}
return nil, &VPNNames
}

2
debian/control vendored
View File

@ -2,7 +2,7 @@ Source: openvpn-mgt
Section: net
Priority: optional
Maintainer: Xavier Henner <xavier@euclide.org>
Build-Depends: debhelper (>= 5), golang-1.14
Build-Depends: debhelper (>= 5), golang-1.16
Standards-Version: 3.7.2
Package: openvpn-mgt

View File

@ -192,8 +192,9 @@ func (s *OpenVpnMgt) handleConn(conn net.Conn) {
log.Println(err)
return
}
if line != ">INFO:OpenVPN Management Interface Version 1 -- type 'help' for more info\r\n" {
if line != ">INFO:OpenVPN Management Interface Version 3 -- type 'help' for more info\r\n" {
log.Println("Bogus Client")
log.Println(line)
return
}