not exists true whose
(
if true then
(
not exists
(
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"
)
whose
(
it as string as lowercase contains "DMZRELAYNAME" as lowercase
)
)
else false
)
not exists true whose (if true then (not exists (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") whose (it as string as lowercase contains "DMZRELAYNAME" as lowercase)) else false)