change IPs in code

This commit is contained in:
2026-03-24 15:44:50 -07:00
parent d679e422b1
commit 8ccf17d4b7
5 changed files with 14 additions and 10 deletions

View File

@ -92,7 +92,7 @@ function curlHelper($url, $APIKey){
// Password Generator API Function
function getStandardPasswordFromAPI($passType){
$apiUrl = "http://172.17.0.1:8189/get_password";
$apiUrl = "http://0.0.0.0:8189/get_password";
// Build the query string and full URL
$query = http_build_query(['pwd_index' => $passType]);
$url = rtrim($apiUrl, '?') . '?' . $query;
@ -101,7 +101,7 @@ function getStandardPasswordFromAPI($passType){
// Password Generator API Function for Custom Password
function getCustomPasswordFromAPI($passType, $payload){
$url = 'http://172.17.0.1:8189/custom_password';
$url = 'http://0.0.0.0:8189/custom_password';
// Initialise a cURL handle
$ch = curl_init($url);
@ -159,7 +159,7 @@ function getCustomPasswordFromAPI($passType, $payload){
// Password Count API Function
function getPasswordCountFromAPI(){
$apiUrl = "http://172.17.0.1:8189/get_count";
$apiUrl = "http://0.0.0.0:8189/get_count";
// Build the query string and full URL
$url = rtrim($apiUrl, '?') ;
return curlHelper($url, "total_passwords");