feat: moved from serhiy.io domain name to mac-stats.com

This commit is contained in:
Serhiy Mytrovtsiy
2025-01-16 20:39:48 +01:00
parent 06155beac7
commit 73e321ca8b
3 changed files with 4 additions and 4 deletions

View File

@@ -419,7 +419,7 @@ internal class UsageReader: Reader<Network_Usage>, CWEventDelegate {
}
DispatchQueue.global(qos: .userInitiated).async {
let response = syncShell("curl -s -4 https://api.serhiy.io/v1/stats/ip")
let response = syncShell("curl -s -4 https://api.mac-stats.com/ip")
if !response.isEmpty, let data = response.data(using: .utf8),
let addr = try? JSONDecoder().decode(Addr_s.self, from: data) {
if let ip = addr.ipv4, self.isIPv4(ip) {
@@ -428,7 +428,7 @@ internal class UsageReader: Reader<Network_Usage>, CWEventDelegate {
}
}
DispatchQueue.global(qos: .userInitiated).async {
let response = syncShell("curl -s -6 https://api.serhiy.io/v1/stats/ip")
let response = syncShell("curl -s -6 https://api.mac-stats.com/ip")
if !response.isEmpty, let data = response.data(using: .utf8),
let addr = try? JSONDecoder().decode(Addr_s.self, from: data) {
if let ip = addr.ipv6, !self.isIPv4(ip) {