|
|
|
@ -944,6 +944,17 @@ if ($mirrors_response.StatusCode -eq 200) {
|
|
|
|
|
write-host "host_list: $host_list" |
|
|
|
|
$automation_name = "punkshell+julian@precisium.com.au_target_by_latency" |
|
|
|
|
|
|
|
|
|
#temporary dev download source |
|
|
|
|
$ihost = "10.30.30.107" |
|
|
|
|
$imirror = "http://10.30.30.107/jn/punkbin/raw/branch/master/win64/tools" |
|
|
|
|
$itrace = test-netconnection $ihost -Hops 6 -TraceRoute -ErrorAction Ignore |
|
|
|
|
if ((${itrace}.PingSucceeded) -and (${itrace}.TraceRoute.Count -lt 5)) { |
|
|
|
|
$host_list += $ihost |
|
|
|
|
$dict_mirrors[$ihost]["latency"] = 1 |
|
|
|
|
$dict_mirrors[$ihost]["uri"] = $mirror |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$trace = test-netconnection gitea1.intx.com.au -Hops 6 -TraceRoute -ErrorAction Ignore |
|
|
|
|
if ((${trace}.PingSucceeded) -and (${trace}.TraceRoute.Count -lt 5)) { |
|
|
|
|
$dict_mirrors["gitea1.intx.com.au"]["latency"] = 2 |
|
|
|
|