mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix: mark private domain hostnames as non-public
This commit is contained in:
@@ -283,7 +283,7 @@ impl Model<Host> {
|
|||||||
};
|
};
|
||||||
available.insert(HostnameInfo {
|
available.insert(HostnameInfo {
|
||||||
ssl: opt.secure.map_or(false, |s| s.ssl),
|
ssl: opt.secure.map_or(false, |s| s.ssl),
|
||||||
public: true,
|
public: false,
|
||||||
hostname: domain.clone(),
|
hostname: domain.clone(),
|
||||||
port: Some(port),
|
port: Some(port),
|
||||||
metadata: HostnameMetadata::PrivateDomain { gateways },
|
metadata: HostnameMetadata::PrivateDomain { gateways },
|
||||||
@@ -300,7 +300,7 @@ impl Model<Host> {
|
|||||||
}
|
}
|
||||||
available.insert(HostnameInfo {
|
available.insert(HostnameInfo {
|
||||||
ssl: true,
|
ssl: true,
|
||||||
public: true,
|
public: false,
|
||||||
hostname: domain,
|
hostname: domain,
|
||||||
port: Some(port),
|
port: Some(port),
|
||||||
metadata: HostnameMetadata::PrivateDomain {
|
metadata: HostnameMetadata::PrivateDomain {
|
||||||
@@ -314,7 +314,7 @@ impl Model<Host> {
|
|||||||
{
|
{
|
||||||
available.insert(HostnameInfo {
|
available.insert(HostnameInfo {
|
||||||
ssl: true,
|
ssl: true,
|
||||||
public: true,
|
public: false,
|
||||||
hostname: domain,
|
hostname: domain,
|
||||||
port: Some(opt.preferred_external_port),
|
port: Some(opt.preferred_external_port),
|
||||||
metadata: HostnameMetadata::PrivateDomain {
|
metadata: HostnameMetadata::PrivateDomain {
|
||||||
|
|||||||
Reference in New Issue
Block a user