diff --git a/interface/web/mail/xmpp_domain_edit.php b/interface/web/mail/xmpp_domain_edit.php index e7fdc6f504426e8001fdd9f7c42d7a29d7ab46bb..8eab9cb251c9107b6146499376b084e50f5dd24e 100644 --- a/interface/web/mail/xmpp_domain_edit.php +++ b/interface/web/mail/xmpp_domain_edit.php @@ -416,11 +416,12 @@ class page_action extends tform_actions { $required_hosts[] = 'vjud'; if($rec['use_muc_host']=='y') $required_hosts[] = 'muc'; - $required_hosts[] = 'upload'; + if($rec['use_http_upload']=='y') + $required_hosts[] = 'upload'; // purge old rr-record $sql = "SELECT * FROM dns_rr WHERE zone = ? AND (name IN ? AND type = 'CNAME' OR name LIKE ? AND type = 'SRV') AND " . $app->tform->getAuthSQL('r') . " ORDER BY serial DESC"; - $rec = $app->db->queryAllRecords($sql, $new_rr['zone'], array('xmpp', 'pubsub', 'proxy', 'anon', 'vjud', 'muc'), '_xmpp-%'); + $rec = $app->db->queryAllRecords($sql, $new_rr['zone'], array('xmpp', 'pubsub', 'proxy', 'anon', 'vjud', 'muc', 'upload'), '_xmpp-%'); if (is_array($rec[1])) { for ($i=0; $i < count($rec); ++$i) $app->db->datalogDelete('dns_rr', 'id', $rec[$i]['id']); diff --git a/server/conf/xmpp_metronome_conf_ssl.master b/server/conf/xmpp_metronome_conf_ssl.master index 73ab3a8a3580313f9879c5e50ccd6a01c6e71547..08d9f14ea733e6ce83b5771195156e9653ceaaad 100644 --- a/server/conf/xmpp_metronome_conf_ssl.master +++ b/server/conf/xmpp_metronome_conf_ssl.master @@ -69,4 +69,8 @@ otherName.12= SRVName;IA5STRING:_xmpp-server.proxy.{tmpl_var name='domain'} DNS.6 = vjud.{tmpl_var name='domain'} otherName.13= xmppAddr;FORMAT:UTF8,UTF8:vjud.{tmpl_var name='domain'} -otherName.14= SRVName;IA5STRING:_xmpp-server.vjud.{tmpl_var name='domain'} \ No newline at end of file +otherName.14= SRVName;IA5STRING:_xmpp-server.vjud.{tmpl_var name='domain'} + +DNS.7 = upload.{tmpl_var name='domain'} +otherName.15= xmppAddr;FORMAT:UTF8,UTF8:upload.{tmpl_var name='domain'} +otherName.16= SRVName;IA5STRING:_xmpp-server.upload.{tmpl_var name='domain'} \ No newline at end of file diff --git a/server/plugins-available/xmpp_plugin.inc.php b/server/plugins-available/xmpp_plugin.inc.php index a5d51cd915a5e56a7a6ebbd57efb63fa6c4a5f3f..b4407a5a254f966802242a6dfa19174ceb81bb31 100644 --- a/server/plugins-available/xmpp_plugin.inc.php +++ b/server/plugins-available/xmpp_plugin.inc.php @@ -192,7 +192,12 @@ class xmpp_plugin { }else{ $tpl->setVar('use_vjud', 'false'); } - $tpl->setVar('use_http_upload', $data['new']['use_muc_host']=='y'?'true':'false'); + if($data['new']['use_muc_host']=='y'){ + $tpl->setVar('use_http_upload', 'true'); + $status_comps[] = 'upload.'.$data['new']['domain']; + }else{ + $tpl->setVar('use_http_upload', 'false'); + } $tpl->setVar('use_muc', $data['new']['use_muc_host']=='y'?'true':'false'); if($data['new']['use_muc_host'] == 'y'){