@@ -122,9 +122,10 @@ local function fota_task(cbFnc,storge_location, len, param1,ota_url,ota_port,tim
end
if ota_port == nil then
- local url_port = string.match(host,".:(%d+)")
+ local url_host,url_port = string.match(host,"(%g+):(%d+)")
if url_port then
ota_port = url_port
+ host = url_host
elseif type == "http" then
ota_port = 80
elseif type == "https" then