mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: moved from serhiy.io domain name to mac-stats.com
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user