Global ping as check proxy support (#147)

* WIP: http

* improve error handling

* tcp monitoring looks good

* fix globalping bugs and improve logs

* add globalping param

* looks good, add real call to globalping, todo fallback

* stupid JS, forgot bind this

* feat: add globalping city

* run prettier

* fix no magic

* fix missing country in TCP

* update config template
This commit is contained in:
lyc8503 committed 2025-10-29 22:18:39 +08:00
1 parent 20e7f47b5e
commit e757e1b970
6 files changed
+272 -62

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@ import {
} from 'chart.js'
import 'chartjs-adapter-moment'
import { MonitorState, MonitorTarget } from '@/types/config'
import { iataToCountry } from '@/util/iata'
import { codeToCountry } from '@/util/iata'
ChartJS.register(
CategoryScale,
@@ -66,7 +66,7 @@ export default function DetailChart({
callbacks: {
label: (item: any) => {
if (item.parsed.y) {
return `${item.parsed.y}ms (${iataToCountry(item.raw.loc)})`
return `${item.parsed.y}ms (${codeToCountry(item.raw.loc)})`
}
},
},