Browse Source

Merge pull request #9 from psteffen/patch-1

Added - as allowed character for the domain name
oscarminus 3 years ago
parent
commit
93b64f5a38

+ 1 - 1
ffho-autoupdater-wifi-fallback/luasrc/usr/lib/lua/autoupdater-wifi-fallback/util.lua

@@ -33,7 +33,7 @@ function get_update_hosts(branch)
   local mirrors = uci:get_list('autoupdater', branch, 'mirror')
 
   for _, mirror in ipairs(mirrors) do
-    local host = mirror:match('://%[?([a-zA-Z0-9\:\.]+)%]?/')
+    local host = mirror:match('://%[?([a-zA-Z0-9\-\:\.]+)%]?/')
     table.insert(hosts, 1, host)
   end
   return hosts