From 7564ba5184dd6fe3c2a6e844a6cf465a0f915864 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Tue, 20 Dec 2016 18:15:09 +0800 Subject: [PATCH] Fix a bug of profile serializing --- src/main/scala/com/github/shadowsocks/database/Profile.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/scala/com/github/shadowsocks/database/Profile.scala b/src/main/scala/com/github/shadowsocks/database/Profile.scala index d893bc29..297f3c37 100644 --- a/src/main/scala/com/github/shadowsocks/database/Profile.scala +++ b/src/main/scala/com/github/shadowsocks/database/Profile.scala @@ -111,6 +111,7 @@ class Profile { .putString(Key.password, password) .putString(Key.route, route) .putString(Key.remoteDns, remoteDns) + .putString(Key.method, method) .putBoolean(Key.proxyApps, proxyApps) .putBoolean(Key.bypass, bypass) .putBoolean(Key.udpdns, udpdns) @@ -127,6 +128,7 @@ class Profile { localPort = pref.getInt(Key.localPort, 0) remotePort = pref.getInt(Key.remotePort, 0) password = pref.getString(Key.password, null) + method = pref.getString(Key.method, null) route = pref.getString(Key.route, null) remoteDns = pref.getString(Key.remoteDns, null) proxyApps = pref.getBoolean(Key.proxyApps, false)