mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 06:55:00 +00:00
feat(check-ip): support #/?host=myip for self-check
This commit is contained in:
parent
d1ddaafd39
commit
b02c784df7
@ -181,7 +181,9 @@ const App = {
|
||||
host = new URLSearchParams(hashQuery).get('host');
|
||||
}
|
||||
}
|
||||
if (host) {
|
||||
if (host === 'myip') {
|
||||
this.check('');
|
||||
} else if (host) {
|
||||
document.querySelector('[data-input]').value = host;
|
||||
this.check(host);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user