Skip to content

Commit

Permalink
use http for proxy urls via guzzle (librenms#13601)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jellyfrog authored Dec 8, 2021
1 parent a046420 commit e803fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LibreNMS/Util/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ public static function get(?string $target_url = null)
}

/**
* Return the proxy url in guzzle format "tcp://127.0.0.1:8888"
* Return the proxy url in guzzle format "http://127.0.0.1:8888"
*/
public static function forGuzzle(): string
{
$proxy = self::forCurl();

return empty($proxy) ? '' : ('tcp://' . $proxy);
return empty($proxy) ? '' : ('http://' . $proxy);
}

/**
Expand Down

0 comments on commit e803fa5

Please sign in to comment.