registry: take IndexServerAddress() out of isSecure

Signed-off-by: Tibor Vass <teabee89@gmail.com>