shiqimei / shadowsocks-deepin

😎 a powful shadowsocks client for deepin
GNU General Public License v3.0
401 stars 82 forks source link

每次注销或重启后,代理地址自动被改为https://raw.githubusercontent.com/PikachuHy/shadowsocks-client/master/autoproxy.pac #7

Closed rorschach closed 6 years ago

rorschach commented 6 years ago

我已经手动把.config/pikachu/shadowsocks-client/gui-config.json中的pacUrl改为了http://file.lolimay.cn/autoproxy.pac,但是每次注销或重启后都自动被改为了https://raw.githubusercontent.com/PikachuHy/shadowsocks-client/master/autoproxy.pac。 目前我使用的是1.2.1版本,之前使用过1.2.0版本,更新1.2.1之前执行了卸载旧版本的操作。 请问这个问题该如何解决?

shiqimei commented 6 years ago

这个是源码中旧的失效pac地址替换不全所致。抱歉给你的使用造成困扰了,我回去更新源码重新打包个给你。

rorschach commented 6 years ago

好的,十分感谢 @lolimay

shiqimei commented 6 years ago

奇怪了,我回来看了一下源码,发现并没有残留的pac_url残留在源码中,这就有点尴尬了。

不过在终端上执行可以看到日志

shadowsocks-client

可以把终端中的日志传上来看看吗

shiqimei commented 6 years ago
load translate "/usr/share/dtkwidget/translations/dtkwidget2_zh_CN"
translatePath after feedback: "/usr/share/shadowsocks-client/translations/shadowsocks-client_zh"
2018-09-11, 09:10:09.636 [Debug  ] [                                                         0] "{\n    \"autostart\": true,\n    \"configs\": [\n        {\n            \"create_time\": \"1528766152826\",\n            \"id\": \"6c5a9ee991f3f6e768f4abb706eaf2968045ce14a47127cfbfb80954bbe22a4d\",\n            \"last_used\": \"\xE5\x91\xA8\xE4\xBA\x8C 9\xE6\x9C\x88 11 09:07:15 2018\",\n            \"local_address\": \"127.0.0.1\",\n            \"local_port\": 1080,\n            \"method\": \"rc4-md5\",\n            \"password\": \"*****\",\n            \"remarks\": \"VPN\",\n            \"reset_date\": \"18/9/1\",\n            \"server\": \"50.3.69.226\",\n            \"server_port\": 45068,\n            \"term_usage\": 0,\n            \"timeout\": 60,\n            \"total_usage\": 1964618980,\n            \"update_time\": 1536283193179\n        },\n        {\n            \"create_time\": \"1529035286894\",\n            \"id\": \"3a572e7fa790d568b023e561d1295b193741768e4eccbb95deaacf25274db527\",\n            \"last_used\": \"\xE5\x91\xA8\xE4\xB8\x80 8\xE6\x9C\x88 27 09:33:44 2018\",\n            \"local_address\": \"127.0.0.1\",\n            \"local_port\": 1080,\n            \"method\": \"rc4-md5\",\n            \"password\": \"*****\",\n            \"remarks\": \"HK\",\n            \"reset_date\": \"18/9/1\",\n            \"server\": \"47.75.66.4\",\n            \"server_port\": 45068,\n            \"term_usage\": 0,\n            \"timeout\": 60,\n            \"total_usage\": 324859146,\n            \"update_time\": 1535333619255\n        }\n    ],\n    \"enabled\": true,\n    \"global\": false,\n    \"index\": 0,\n    \"local_address\": \"127.0.0.1\",\n    \"local_port\": 1080,\n    \"pacUrl\": \"https://raw.githubusercontent.com/PikachuHy/shadowsocks-client/master/autoproxy.pac\"\n}\n"
2018-09-11, 09:10:09.637 [Debug  ] [                                                         0] that's ok
2018-09-11, 09:10:09.637 [Debug  ] [                                                         0] {
    "autostart": true,
    "configs": [
        {
            "create_time": "1528766152826",
            "id": "6c5a9ee991f3f6e768f4abb706eaf2968045ce14a47127cfbfb80954bbe22a4d",
            "last_used": "周二 9月 11 09:07:15 2018",
            "local_address": "127.0.0.1",
            "local_port": 1080,
            "method": "rc4-md5",
            "password": "*****",
            "remarks": "VPN",
            "reset_date": "18/9/1",
            "server": "50.3.69.226",
            "server_port": 45068,
            "term_usage": 0,
            "timeout": 60,
            "total_usage": 1964618980,
            "update_time": 1536283193179
        },
        {
            "create_time": "1529035286894",
            "id": "3a572e7fa790d568b023e561d1295b193741768e4eccbb95deaacf25274db527",
            "last_used": "周一 8月 27 09:33:44 2018",
            "local_address": "127.0.0.1",
            "local_port": 1080,
            "method": "rc4-md5",
            "password": "*****",
            "remarks": "HK",
            "reset_date": "18/9/1",
            "server": "47.75.66.4",
            "server_port": 45068,
            "term_usage": 0,
            "timeout": 60,
            "total_usage": 324859146,
            "update_time": 1535333619255
        }
    ],
    "enabled": true,
    "global": false,
    "index": 0,
    "local_address": "127.0.0.1",
    "local_port": 1080,
    "pacUrl": "https://raw.githubusercontent.com/PikachuHy/shadowsocks-client/master/autoproxy.pac"
}

2018-09-11, 09:10:09.731 [Debug  ] [                                                         0] QJsonObject({"create_time":"1528766152826","id":"6c5a9ee991f3f6e768f4abb706eaf2968045ce14a47127cfbfb80954bbe22a4d","last_used":"周二 9月 11 09:07:15 2018","local_address":"127.0.0.1","local_port":1080,"method":"rc4-md5","password":"******","remarks":"VPN","reset_date":"18/9/1","server":"50.3.69.226","server_port":45068,"term_usage":0,"timeout":60,"total_usage":1964618980,"update_time":1536283193179})
2018-09-11, 09:10:09.731 [Info   ] [                                                         0] Initialising cipher: rc4-md5
2018-09-11, 09:10:09.731 [Info   ] [                                                         0] Running in local mode.
2018-09-11, 09:10:09.732 [Debug  ] [                                                         0] Listen UDP socket state changed to QAbstractSocket::BoundState
2018-09-11, 09:10:09.732 [Info   ] [                                                         0] TCP server listening at 127.0.0.1:1080
2018-09-11, 09:10:09.733 [Debug  ] [                                                         0] add to startup: true
2018-09-11, 09:10:09.735 [Debug  ] [                                                         0] set pac URI  "https://raw.githubusercontent.com/PikachuHy/shadowsocks-client/master/autoproxy.pac"
2018-09-11, 09:10:09.735 [Debug  ] [                                                         0] set pac URI  "https://raw.githubusercontent.com/PikachuHy/shadowsocks-client/master/autoproxy.pac"
2018-09-11, 09:10:09.736 [Debug  ] [                                                         0] success to set proxy method  "auto"
2018-09-11, 09:10:09.737 [Debug  ] [                                                         0] success to set proxy method  "auto"

密码也传上来了,已帮你删除,下次注意点。