Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
carolyn-sun committed Nov 12, 2022
1 parent 02e05ee commit 212b84d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src.v
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn start_check() !bool {
ip := get_ip()!
payload := raw + '\"$ip\"}'
for (check()! == false) {
http.post('http://10.255.255.34/api/v1/login/', payload)!
simple_post(payload)
}
return true
}
Expand All @@ -139,3 +139,9 @@ fn scan() !bool {
}
return false
}

fn simple_post(payload string) http.Response {
return http.post('http://10.255.255.34/api/v1/login/', payload) or {
simple_post(payload)
}
}

0 comments on commit 212b84d

Please sign in to comment.