mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Merge pull request #21 from oddnoc/fsockopen-port-correction
Specify port 80 for connecting to Google
This commit is contained in:
commit
a20e84ca9b
@ -221,7 +221,7 @@ class GoogleSitemap extends Controller {
|
||||
* @return String Response text
|
||||
*/
|
||||
protected static function send_ping($host, $path, $query) {
|
||||
$socket = fsockopen($host, $port, $errno, $error);
|
||||
$socket = fsockopen($host, 80, $errno, $error);
|
||||
if (!$socket) {
|
||||
return $error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user