1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-23 04:41:16 +00:00

Update deprecated 8080 port to 8384

This commit is contained in:
Lode Hoste 2015-04-23 08:07:54 +02:00
parent 8f2fe9955a
commit 5e0029e208

View file

@ -142,6 +142,17 @@ public class ConfigXml {
}
}
// Update deprecated 8080 port to 8384
NodeList addressList = gui.getElementsByTagName("address");
for (int i = 0; i < addressList.getLength(); i++) {
Element g = (Element) addressList.item(i);
if (g.getTextContent().equals("127.0.0.1:8080")) {
Log.i(TAG, "Replacing 127.0.0.1:8080 address with 127.0.0.1:8384");
g.setTextContent("127.0.0.1:8384");
changed = true;
}
}
if (changed) {
saveChanges();
}