Small constants changes
- ifconfig.me/ip added, see #186 - Remove trailing space for a Surfshark region
This commit is contained in:
@@ -32,7 +32,7 @@ func SurfsharkServers() []models.SurfsharkServer {
|
||||
{Region: "Austria", IPs: []net.IP{{5, 253, 207, 51}, {5, 253, 207, 53}, {5, 253, 207, 83}, {5, 253, 207, 85}, {37, 120, 212, 75}, {37, 120, 212, 77}, {37, 120, 212, 131}, {37, 120, 212, 133}, {37, 120, 212, 139}, {37, 120, 212, 141}, {37, 120, 212, 147}, {37, 120, 212, 149}, {91, 132, 139, 99}, {91, 132, 139, 101}, {91, 132, 139, 105}, {91, 132, 139, 107}}},
|
||||
{Region: "Azerbaijan", IPs: []net.IP{{94, 20, 21, 85}, {94, 20, 21, 87}}},
|
||||
{Region: "Belgium", IPs: []net.IP{{5, 253, 205, 99}, {5, 253, 205, 101}, {5, 253, 205, 179}, {5, 253, 205, 181}, {5, 253, 205, 211}, {5, 253, 205, 213}, {5, 253, 205, 227}, {5, 253, 205, 229}, {37, 120, 143, 117}, {37, 120, 143, 121}, {37, 120, 143, 125}, {37, 120, 218, 251}, {37, 120, 218, 253}, {89, 249, 73, 195}, {89, 249, 73, 197}, {185, 104, 186, 75}, {185, 104, 186, 77}, {185, 232, 21, 51}, {185, 232, 21, 53}}},
|
||||
{Region: "Bosnia and Herzegovina ", IPs: []net.IP{{185, 99, 3, 12}, {185, 99, 3, 207}, {185, 99, 3, 214}, {185, 164, 34, 252}, {185, 212, 111, 6}, {185, 212, 111, 41}, {185, 212, 111, 59}}},
|
||||
{Region: "Bosnia and Herzegovina", IPs: []net.IP{{185, 99, 3, 12}, {185, 99, 3, 207}, {185, 99, 3, 214}, {185, 164, 34, 252}, {185, 212, 111, 6}, {185, 212, 111, 41}, {185, 212, 111, 59}}},
|
||||
{Region: "Brazil", IPs: []net.IP{{181, 215, 183, 244}, {181, 215, 183, 248}, {191, 96, 70, 171}}},
|
||||
{Region: "Bulgaria", IPs: []net.IP{{37, 120, 152, 35}, {37, 120, 152, 37}, {37, 120, 152, 39}, {37, 120, 152, 195}, {37, 120, 152, 197}, {217, 138, 202, 19}, {217, 138, 202, 21}}},
|
||||
{Region: "Canada Montreal", IPs: []net.IP{{172, 98, 82, 83}, {172, 98, 82, 85}, {172, 98, 82, 243}, {172, 98, 82, 245}, {198, 8, 85, 3}, {198, 8, 85, 5}, {198, 8, 85, 19}, {198, 8, 85, 21}, {198, 8, 85, 35}, {198, 8, 85, 37}, {198, 8, 85, 40}, {198, 8, 85, 42}, {198, 8, 85, 45}, {198, 8, 85, 47}, {198, 8, 85, 69}, {198, 8, 85, 72}, {198, 8, 85, 74}, {198, 8, 85, 77}, {198, 8, 85, 79}, {198, 8, 85, 82}, {198, 8, 85, 84}, {198, 8, 85, 87}, {198, 8, 85, 131}, {198, 8, 85, 133}}},
|
||||
|
||||
@@ -28,6 +28,7 @@ func NewIPGetter(client network.Client) IPGetter {
|
||||
|
||||
func (i *ipGetter) Get() (ip net.IP, err error) {
|
||||
urls := []string{
|
||||
"https://ifconfig.me/ip",
|
||||
"http://ip1.dynupdate.no-ip.com:8245",
|
||||
"http://ip1.dynupdate.no-ip.com",
|
||||
"https://api.ipify.org",
|
||||
|
||||
Reference in New Issue
Block a user