瀏覽代碼

Merge pull request #9 from psteffen/patch-1

Added - as allowed character for the domain name
oscarminus 3 年之前
父節點
當前提交
93b64f5a38
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ffho-autoupdater-wifi-fallback/luasrc/usr/lib/lua/autoupdater-wifi-fallback/util.lua

+ 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