Avoid trying to use socks server if ['socks_host'] doesn't exist

This commit is contained in:
Retro_Guy 2021-01-28 19:33:47 -07:00
parent a005cc597c
commit 74c02675ab
1 changed files with 1 additions and 1 deletions

View File

@ -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);