Change default server port to 443
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 31 May 2013 20:16:28 +0000 (23:16 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 31 May 2013 20:16:28 +0000 (23:16 +0300)
res/xml/prefs.xml
src/ro/ieval/fonbot/Utils.java

index fb4c54aaa7c1363922ef31b2d1cde4394841b110..b47e0f9ff167b6eaa5d062212bc3f1e3319cdd04 100644 (file)
@@ -7,5 +7,5 @@
     <CheckBoxPreference android:key="system" android:summaryOff="FonBot is not a system app. Changing this requires root and busybox" android:title="System App" android:summaryOn="FonBot is a system app. Changing this requires root and busybox"/>
     
     <EditTextPreference android:dialogTitle="Server hostname" android:title="Server hostname" android:dialogMessage="Server hostname. Do not change unless you know what you are doing!" android:key="hostname" android:defaultValue="fonbot.ieval.ro" android:summary="fonbot.ieval.ro"/>
-    <EditTextPreference android:dialogMessage="Server port. Do not change unless you know what you are doing!" android:dialogTitle="Server port" android:title="Server port" android:summary="7777" android:defaultValue="7777" android:key="port"/>
+    <EditTextPreference android:dialogMessage="Server port. Do not change unless you know what you are doing!" android:dialogTitle="Server port" android:title="Server port" android:summary="443" android:defaultValue="443" android:key="port"/>
 </PreferenceScreen>
\ No newline at end of file
index c4f3615a8313a318ffad513fcbbceb214c7838d0..849848bd592133f731cb8629d31ee29198d1aad8 100644 (file)
@@ -405,7 +405,7 @@ public final class Utils {
         */
        public static URL getServerURL(final Context context, final String path) throws MalformedURLException{
                final String hostname=PreferenceManager.getDefaultSharedPreferences(context).getString("hostname", "fonbot.ieval.ro");
-               final int port=Integer.parseInt(PreferenceManager.getDefaultSharedPreferences(context).getString("port", "7777"));
+               final int port=Integer.parseInt(PreferenceManager.getDefaultSharedPreferences(context).getString("port", "443"));
                final URL url=new URL("https", hostname, port, path);
                return url;
        }
This page took 0.012157 seconds and 4 git commands to generate.