summaryrefslogtreecommitdiff
path: root/provider_base
diff options
context:
space:
mode:
authorirregulator <irregulator@riseup.net>2014-07-01 01:49:56 +0300
committerelijah <elijah@riseup.net>2014-07-01 16:05:42 -0700
commit7e278f92f34e3809d380be724f0c306430791b10 (patch)
tree3c7e703452da8c4caca3469f08c63f4e3041b71c /provider_base
parent0e0ebab964339446ab59cffead5a5546c5dcb18e (diff)
Use new macro pick_node to pick vpn gateway for obfsproxy.json
Diffstat (limited to 'provider_base')
-rw-r--r--provider_base/services/obfsproxy.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/provider_base/services/obfsproxy.json b/provider_base/services/obfsproxy.json
index ab92c11f..979d0ef9 100644
--- a/provider_base/services/obfsproxy.json
+++ b/provider_base/services/obfsproxy.json
@@ -4,6 +4,6 @@
"password": "= base32_secret('scramblesuit_password_'+name)",
"port" : "= rand_range('scramblesuit_port_'+name, 18000..32000)"
},
- "gateway_address": "= try{openvpn.gateway_address} || try{nodes_like_me[:services => 'openvpn']['location.name' => location.name].field('openvpn.gateway_address').shuffle.first} || try{nodes_like_me[:services => 'openvpn'].field('openvpn.gateway_address').shuffle.first}"
+ "gateway_address": "= try{pick_node(:obfs_gateway,nodes_near_me['services' => 'openvpn']).pick_fields('openvpn.gateway_address')} || try{pick_node(:obfs_gateway,nodes_like_me['services' => 'openvpn']).pick_fields('openvpn.gateway_address')}"
}
}