Fixed port number

pull/1/head
riley 11 months ago
parent a7623019be
commit 41b6f083d8

@ -10,12 +10,11 @@ local container_running = string.match(string.lower(container_status), "^up%W")
<% else %> <% else %>
<button class="cbi-button cbi-button-negative" disabled="true"><%=container_status%></button> <button class="cbi-button cbi-button-negative" disabled="true"><%=container_status%></button>
<% end %> <% end %>
<% if container_running then %> <% if container_running then %>
<% <%
local port=util.trim(util.exec("/usr/libexec/apps/whoogle/whoogle.sh port")) local port=util.trim(util.exec("/usr/libexec/apps/whoogle/whoogle.sh port"))
if port == "" then if port == "" then
port="5000" port="1880"
end end
-%> -%>
<input type="button" class="btn cbi-button cbi-button-apply" name="start" value="<%:Open Whoogle%>" onclick="window.open('http://'+location.hostname+':<%=port%>/', '_blank')"> <input type="button" class="btn cbi-button cbi-button-apply" name="start" value="<%:Open Whoogle%>" onclick="window.open('http://'+location.hostname+':<%=port%>/', '_blank')">

Loading…
Cancel
Save