Relevance for Secondary relay

Hi There, Currently all of our endpoints have the primary relay server assigned. Lets name the primary relay server - ABC

We have set up a secondary relay server that we want to assign the endpoints to. Lets name the secondary relay server - DEF

This is the relevance for our “Relay” under Manage Properties -

if ((it does not contain “127.0.0.1” and it does not contain “::1”) of name of registration server) then (name of registration server) else if (exists setting “_BESRelay_PostResults_ParentRelayURL” of client and exists value of setting “_BESRelay_PostResults_ParentRelayURL” of client as string) then (preceding text of first “/” of (following text of first “//” of (value of setting “_BESRelay_PostResults_ParentRelayURL” of client))) else “BES Root Server”

Pls advise how do we create the relevance for Secondary Relay?
We want to achieve something like this… if Relay server is ABC but do not have DEF as the secondary relay server… flag out the endpoints

Appreciate your reply. Thanks!

The above relevance will pull what relay the machine is currently pointing to, not necessararily always “primary” - in normal circumstances probably it will be always “primary” but it is possible that it shows secondary in certain situations, just FYI…

The client settings you want are “__RelayServer1” (Primary) & “__RelayServer2” (Secondary) which will be static values.
if exist values of settings “__RelayServer1” of client then value of setting “__RelayServer1” of client else error "not set"
if exist values of settings “__RelayServer2” of client then value of setting “__RelayServer2” of client else error “not set”

1 Like