From 74c02675abf4cf07db9c02a5429fbfeb40be205a Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Thu, 28 Jan 2021 19:33:47 -0700 Subject: [PATCH] Avoid trying to use socks server if ['socks_host'] doesn't exist --- Rocksolid_Light/rocksolid/newsportal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php index 058222a..c45e292 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -96,7 +96,7 @@ function nntp2_open($nserver=0,$nport=0) { if($CONFIG['remote_ssl']) { $ns=@fsockopen('ssl://'.$nserver.":".$nport); } else { - if($CONFIG['socks_host'] !== '') { + if(isset($CONFIG['socks_host']) && $CONFIG['socks_host'] !== '') { $ns=fsocks4asockopen($CONFIG['socks_host'], $CONFIG['socks_port'], $nserver, $nport); } else { $ns=@fsockopen('tcp://'.$nserver.":".$nport);