Setting: Disable port if https
This commit is contained in:
parent
abc360fea3
commit
00ef16a66c
1 changed files with 5 additions and 1 deletions
|
@ -19,8 +19,12 @@ class Settings < Settingslogic
|
||||||
end
|
end
|
||||||
|
|
||||||
def web_port
|
def web_port
|
||||||
|
if web.https
|
||||||
|
nil
|
||||||
|
else
|
||||||
web['port'] ||= 80
|
web['port'] ||= 80
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def build_url
|
def build_url
|
||||||
raw_url = self.web_protocol
|
raw_url = self.web_protocol
|
||||||
|
|
Loading…
Add table
Reference in a new issue