mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-07-07 09:24:07 +00:00
This commit is contained in:
committed by
GitHub
parent
eb9f199d57
commit
26fd9c3e85
@ -60,6 +60,13 @@ function Start-SSLocal {
|
||||
# Main loop
|
||||
while ($true) {
|
||||
try {
|
||||
if ($url -notmatch "mode=json") {
|
||||
$delimiter = "?"
|
||||
if ($url -match "\?") {
|
||||
$delimiter = "&"
|
||||
}
|
||||
$url = "$url${delimiter}mode=json"
|
||||
}
|
||||
# Download and parse the JSON
|
||||
$jsonContent = Invoke-WebRequest -Uri $url -UseBasicParsing | Select-Object -ExpandProperty Content
|
||||
$json = $jsonContent | ConvertFrom-Json
|
||||
|
Reference in New Issue
Block a user