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