mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 12:51:16 +00:00
Update deprecated 8080 port to 8384
This commit is contained in:
parent
8f2fe9955a
commit
5e0029e208
1 changed files with 11 additions and 0 deletions
|
@ -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) {
|
if (changed) {
|
||||||
saveChanges();
|
saveChanges();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue