diff options
| author | ruki <[email protected]> | 2017-09-04 16:46:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-04 16:46:30 +0800 |
| commit | 4fead28a91b650fd7268e708afdf4dc97935d454 (patch) | |
| tree | acbc0c9f1e34689d8b3858f76acfd87861bf2499 /xmake/modules/net/fasturl.lua | |
| parent | 08ec1c7dcab891641f6b2fb6a61c2c3b210f5f55 (diff) | |
add require to build and optmize ping
Diffstat (limited to 'xmake/modules/net/fasturl.lua')
| -rw-r--r-- | xmake/modules/net/fasturl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/net/fasturl.lua b/xmake/modules/net/fasturl.lua index 25ec19a4c..793b9ec9d 100644 --- a/xmake/modules/net/fasturl.lua +++ b/xmake/modules/net/fasturl.lua @@ -68,8 +68,8 @@ function sort(urls) local pinghosts = table.unique(_g._PINGHOSTS or {}) if pinghosts and #pinghosts > 0 then - -- ping them and test speed - local pinginfo = ping(unpack(pinghosts)) + -- ping them and test speed, enable cache by default + local pinginfo = ping(pinghosts) -- merge to ping info _g._PINGINFO = table.join(_g._PINGINFO or {}, pinginfo) |
