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

@@ -32,7 +32,7 @@ public class Telemetry {
}
}
private var url: URL = URL(string: "https://api.serhiy.io/v1/stats/telemetry")!
private var url: URL = URL(string: "https://api.mac-stats.com/telemetry")!
private var _isEnabled: Bool = true

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) {

View File

@@ -21,7 +21,7 @@ import GPU
import Bluetooth
import Clock
let updater = Updater(github: "exelban/stats", url: "https://api.serhiy.io/v1/stats/release/latest")
let updater = Updater(github: "exelban/stats", url: "https://api.mac-stats.com/release/latest")
var modules: [Module] = [
CPU(),
GPU(),