mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge remote-tracking branch 'origin/4.12'
This commit is contained in:
commit
6784cc516b
@ -139,7 +139,8 @@ class CsDhcp(CsDataBag):
|
||||
logging.error("Caught error while trying to delete entries from dnsmasq.leases file: %s" % e)
|
||||
|
||||
def preseed(self):
|
||||
self.add_host("127.0.0.1", "localhost %s" % CsHelper.get_hostname())
|
||||
self.add_host("127.0.0.1", "localhost")
|
||||
self.add_host("127.0.1.1", "%s" % CsHelper.get_hostname())
|
||||
self.add_host("::1", "localhost ip6-localhost ip6-loopback")
|
||||
self.add_host("ff02::1", "ip6-allnodes")
|
||||
self.add_host("ff02::2", "ip6-allrouters")
|
||||
|
||||
@ -30,9 +30,11 @@ public class ImageStoreUtil {
|
||||
|
||||
//if ssvm url domain is present, use it to construct hostname in the format 1-2-3-4.domain
|
||||
// if the domain name is not present, ssl validation fails and has to be ignored
|
||||
if(StringUtils.isNotBlank(ssvmUrlDomain)) {
|
||||
if(StringUtils.isNotBlank(ssvmUrlDomain) && ssvmUrlDomain.startsWith("*")) {
|
||||
hostname = ipAddress.replace(".", "-");
|
||||
hostname = hostname + ssvmUrlDomain.substring(1);
|
||||
} else if (StringUtils.isNotBlank(ssvmUrlDomain)) {
|
||||
hostname = ssvmUrlDomain;
|
||||
}
|
||||
|
||||
//only https works with postupload and url format is fixed
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user