1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-25 04:11:29 +00:00

Removed code to change web GUI port.

Everyone should have the proper port by now.
This commit is contained in:
Felix Ableitner 2015-11-19 21:24:01 +01:00
parent 08de76b873
commit cda820aaed

View file

@ -108,7 +108,7 @@ public class ConfigXml {
/** /**
* Updates the config file. * Updates the config file.
* <p/> * <p/>
* Coming from 0.3.0 and earlier, the ignorePerms flag is set to true on every folder. * Sets ignorePerms flag to true on every folder.
*/ */
@SuppressWarnings("SdCardPath") @SuppressWarnings("SdCardPath")
private void updateIfNeeded() { private void updateIfNeeded() {
@ -143,17 +143,6 @@ public class ConfigXml {
changed = true; changed = true;
} }
// 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();
} }