Skip to content

Commit

Permalink
feat: moved from serhiy.io domain name to mac-stats.com
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban committed Jan 16, 2025
1 parent 06155be commit 73e321c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Kit/plugins/Telemetry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions Modules/Net/readers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion Stats/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 73e321c

Please sign in to comment.