mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-30 00:01:19 +00:00
Replace (newly formatted) announce server address with IP (fixes #191).
This commit is contained in:
parent
3d9e09a818
commit
1506541796
1 changed files with 2 additions and 3 deletions
|
@ -114,10 +114,9 @@ public class ConfigXml {
|
||||||
// Hardcode default globalAnnounceServer ip.
|
// Hardcode default globalAnnounceServer ip.
|
||||||
Element globalAnnounceServer = (Element)
|
Element globalAnnounceServer = (Element)
|
||||||
options.getElementsByTagName("globalAnnounceServer").item(0);
|
options.getElementsByTagName("globalAnnounceServer").item(0);
|
||||||
if (globalAnnounceServer.getTextContent().startsWith("announce.syncthing.net:") ||
|
if (globalAnnounceServer.getTextContent().equals("udp4://announce.syncthing.net:22026")) {
|
||||||
globalAnnounceServer.getTextContent().startsWith("194.126.249.5:")) {
|
|
||||||
Log.i(TAG, "Replacing globalAnnounceServer host with ip");
|
Log.i(TAG, "Replacing globalAnnounceServer host with ip");
|
||||||
globalAnnounceServer.setTextContent("194.126.249.5:22026");
|
globalAnnounceServer.setTextContent("udp4://194.126.249.5:22026");
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue