Skip to content

Commit 89bc625

Browse files
author
Till Brehm
committed
Update ajax_get_ip.php
1 parent 07dcf84 commit 89bc625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/sites/ajax_get_ip.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
$web_config = $app->getconf->get_server_config($server_id, 'web');
4646

4747
$tmp = $app->db->queryOneRecord("SELECT client_id FROM sys_group WHERE groupid = ?", $client_group_id);
48-
$sql = "SELECT ip_address FROM server_ip WHERE ip_type = ? AND server_id = ? AND (client_id = 0 OR client_id=?)";
48+
$sql = "SELECT ip_address FROM server_ip WHERE ip_type = ? AND server_id = ? AND virtualhost = 'y' AND (client_id = 0 OR client_id=?)";
4949

5050
$ips = $app->db->queryAllRecords($sql, $ip_type, $server_id, $tmp['client_id']);
5151
// $ip_select = "<option value=''></option>";

0 commit comments

Comments
 (0)