diff --git a/index.php b/index.php
index d3decf5..ddbe58e 100644
--- a/index.php
+++ b/index.php
@@ -562,7 +562,7 @@ help support Mozilla.
with a path of "token/1.0/sync/1.5"
:
- identity.sync.tokenserver.uri: ${public_url}/token/1.0/sync/1.5
+ identity.sync.tokenserver.uri: = ($_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]"; ?>/token/1.0/sync/1.5
Since Firefox 33, Firefox for Android has supported custom sync servers,