Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server list clears whenever the app is closed #1468

Open
gmcouto opened this issue Apr 21, 2023 · 1 comment
Open

Server list clears whenever the app is closed #1468

gmcouto opened this issue Apr 21, 2023 · 1 comment

Comments

@gmcouto
Copy link

gmcouto commented Apr 21, 2023

Describe the bug
Whenever I close ShadowsocksX-NG

To Reproduce

  1. Startup the system and let it open ShadowsockX-NG
  2. Go to server preferences
  3. Add a server
  4. Reboot
  5. Server is gone
    OR
  6. Startup the system and let it open ShadowsockX-NG
  7. Go to server preferences
  8. Add a server
  9. Quit app
  10. Open again
  11. Server is gone

Expected behavior
I expected the servers I added to be persisted.

System and Shadowsocksx-NG version: (please complete the following information):

  • OS Version: 13.3.1 (22E261)
  • Version v1.10.2

Diagnoisis file:

Please first upgrade to the latest version.
Then export the diagnosis file and upload it to here.


-----------------------------------
{
  "NSMainNibFile" : "MainMenu",
  "NSPrincipalClass" : "SWBApplication",
  "CFBundleSupportedPlatforms" : [
    "MacOSX"
  ],
  "CFBundleIconFile" : "AppIcon",
  "DTXcode" : "1420",
  "DTPlatformBuild" : "14C18",
  "BuildMachineOSBuild" : "21G419",
  "DTCompiler" : "com.apple.compilers.llvm.clang.1_0",
  "CFBundleSignature" : "????",
  "CFBundleURLTypes" : [
    {
      "CFBundleTypeRole" : "Viewer",
      "CFBundleURLIconFile" : "menu_icon@2x",
      "CFBundleURLSchemes" : [
        "ss"
      ],
      "CFBundleURLName" : "shadowsocks"
    }
  ],
  "NSHumanReadableCopyright" : "Copyright © 2016-2019 qiuyuzhou. All rights reserved. License GPLv3.",
  "CFBundleName" : "ShadowsocksX-NG",
  "DTSDKName" : "macosx13.1",
  "LSMinimumSystemVersion" : "10.12",
  "DTSDKBuild" : "22C55",
  "CFBundleVersion" : "1",
  "LSApplicationCategoryType" : "public.app-category.utilities",
  "CFBundleDevelopmentRegion" : "en",
  "CFBundleShortVersionString" : "v1.10.2",
  "CFBundleInfoDictionaryVersion" : "6.0",
  "CFBundleNumericVersion" : 16809984,
  "DTPlatformVersion" : "13.1",
  "DTXcodeBuild" : "14C18",
  "CFBundleIdentifier" : "com.qiuyuzhou.ShadowsocksX-NG",
  "LSUIElement" : true,
  "CFBundleExecutable" : "ShadowsocksX-NG",
  "DTPlatformName" : "macosx",
  "CFBundlePackageType" : "APPL",
  "CFBundleIconName" : "AppIcon"
}
-----------------------------------
Preferences:
ShadowsocksOn=1
ShadowsocksRunningMode=manual
LocalSocks5.ListenPort=1080
LocalSocks5.ListenAddress=127.0.0.1
PacServer.BindToLocalhost=0
PacServer.ListenPort=1081
LocalSocks5.Timeout=60
LocalSocks5.EnableUDPRelay=1
LocalSocks5.EnableVerboseMode=0
GFWListURL=https://cdn.jsdelivr.net/gh/gfwlist/gfwlist/gfwlist.txt
LocalHTTP.ListenAddress=127.0.0.1
LocalHTTP.ListenPort=1087
LocalHTTPOn=0
LocalHTTP.FollowGlobal=0
ProxyExceptions=127.0.0.1, localhost, 192.168.0.0/16, 10.0.0.0/8, FE80::/64, ::1, FD00::/8
-----------------------------------
Active server profile: 
No actived server profile!-----------------------------------
$ ls -l ~/Library/Application Support/ShadowsocksX-NG/
total 24
-rw-r--r--@ 1 gcouto  staff   743 Apr 21 17:47 com.qiuyuzhou.shadowsocksX-NG.http.plist
-rw-r--r--@ 1 gcouto  staff  1034 Apr 21 17:47 com.qiuyuzhou.shadowsocksX-NG.local.plist
drwxr-xr-x@ 3 gcouto  staff    96 Apr 21 17:47 kcptun
drwxr-xr-x@ 7 gcouto  staff   224 Apr 21 17:47 plugins
drwxr-xr-x@ 3 gcouto  staff    96 Apr 21 17:47 privoxy
-rw-r--r--@ 1 gcouto  staff   642 Apr 21 17:47 privoxy.config
drwxr-xr-x@ 3 gcouto  staff    96 Apr 21 17:47 simple-obfs
drwxr-xr-x@ 3 gcouto  staff    96 Apr 21 17:47 ss-local
drwxr-xr-x@ 3 gcouto  staff    96 Apr 21 17:47 v2ray-plugin
-----------------------------------
$ ls -l ~/Library/LaunchAgents/
total 56
-rw-r--r--@ 1 gcouto  staff   810 Apr 20 23:36 com.google.keystone.agent.plist
-rw-r--r--@ 1 gcouto  staff   916 Apr 20 23:36 com.google.keystone.xpcservice.plist
-rw-r--r--  1 gcouto  staff   675 Mar 27 09:27 com.logi.bolt.app.plist
-rw-r--r--@ 1 gcouto  staff   743 Apr 20 22:54 com.qiuyuzhou.shadowsocksX-NG.http.plist
-rw-r--r--@ 1 gcouto  staff  1034 Apr 20 22:54 com.qiuyuzhou.shadowsocksX-NG.local.plist
-rw-r--r--  1 gcouto  staff   862 Apr 20 22:35 com.valvesoftware.steamclean.plist
-rw-r--r--@ 1 gcouto  staff   551 Apr 21 17:35 start.gluetun.plist
-----------------------------------
$ ls -l ~/.ShadowsocksX-NG/
total 720
-rw-r--r--@ 1 gcouto  staff  165256 Apr 20 19:25 gfwlist.js
-rw-r--r--@ 1 gcouto  staff  189845 Mar 28 23:38 gfwlist.txt
-rw-r--r--@ 1 gcouto  staff     100 Mar 28 23:38 user-privoxy.config
-rw-r--r--@ 1 gcouto  staff      95 Mar 28 23:38 user-rule.txt
-----------------------------------
$ ls -l /Library/Application Support/ShadowsocksX-NG/
total 440
-rwsr-sr-x@ 1 root  admin  221792 Apr 20 19:19 proxy_conf_helper
-----------------------------------
$ lsof -PiTCP -sTCP:LISTEN
COMMAND    PID   USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
rapportd   602 gcouto    3u  IPv4 0x68db45c187c8da81      0t0  TCP *:49164 (LISTEN)
rapportd   602 gcouto    4u  IPv6 0x68db45bcbc9cbc59      0t0  TCP *:49164 (LISTEN)
ControlCe  738 gcouto    5u  IPv4 0x68db45c187c911d1      0t0  TCP *:7000 (LISTEN)
ControlCe  738 gcouto    6u  IPv6 0x68db45bcbc9cc459      0t0  TCP *:7000 (LISTEN)
ControlCe  738 gcouto    7u  IPv4 0x68db45c187c8ae41      0t0  TCP *:5000 (LISTEN)
ControlCe  738 gcouto    8u  IPv6 0x68db45bcbc9ccc59      0t0  TCP *:5000 (LISTEN)
com.docke  886 gcouto  170u  IPv6 0x68db45bcbc9ca459      0t0  TCP *:8388 (LISTEN)
com.docke  886 gcouto  173u  IPv6 0x68db45bcbc9eec59      0t0  TCP *:8888 (LISTEN)
Microsoft 1681 gcouto   18u  IPv6 0x68db45bcbc9cdc59      0t0  TCP localhost:42050 (LISTEN)
-----------------------------------
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
	inet 127.0.0.1 netmask 0xff000000 
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
	nd6 options=201<PERFORMNUD,DAD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
anpi1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=400<CHANNEL_IO>
	ether 62:4d:90:65:02:b0 
	inet6 fe80::604d:90ff:fe65:2b0%anpi1 prefixlen 64 scopeid 0x4 
	nd6 options=201<PERFORMNUD,DAD>
	media: none
	status: inactive
anpi2: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=400<CHANNEL_IO>
	ether 62:4d:90:65:02:b1 
	inet6 fe80::604d:90ff:fe65:2b1%anpi2 prefixlen 64 scopeid 0x5 
	nd6 options=201<PERFORMNUD,DAD>
	media: none
	status: inactive
anpi0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=400<CHANNEL_IO>
	ether 62:4d:90:65:02:af 
	inet6 fe80::604d:90ff:fe65:2af%anpi0 prefixlen 64 scopeid 0x6 
	nd6 options=201<PERFORMNUD,DAD>
	media: none
	status: inactive
en4: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
	options=400<CHANNEL_IO>
	ether 62:4d:90:65:02:8f 
	media: none
	status: inactive
en5: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
	options=400<CHANNEL_IO>
	ether 62:4d:90:65:02:90 
	media: none
	status: inactive
en7: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
	options=400<CHANNEL_IO>
	ether 62:4d:90:65:02:91 
	media: none
	status: inactive
en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
	options=460<TSO4,TSO6,CHANNEL_IO>
	ether 36:6d:35:7b:f3:c0 
	media: autoselect <full-duplex>
	status: inactive
en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
	options=460<TSO4,TSO6,CHANNEL_IO>
	ether 36:6d:35:7b:f3:c4 
	media: autoselect <full-duplex>
	status: inactive
en3: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
	options=460<TSO4,TSO6,CHANNEL_IO>
	ether 36:6d:35:7b:f3:c8 
	media: autoselect <full-duplex>
	status: inactive
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=63<RXCSUM,TXCSUM,TSO4,TSO6>
	ether 36:6d:35:7b:f3:c0 
	Configuration:
		id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
		maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
		root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
		ipfilter disabled flags 0x0
	member: en1 flags=3<LEARNING,DISCOVER>
	        ifmaxaddr 0 port 10 priority 0 path cost 0
	member: en2 flags=3<LEARNING,DISCOVER>
	        ifmaxaddr 0 port 11 priority 0 path cost 0
	member: en3 flags=3<LEARNING,DISCOVER>
	        ifmaxaddr 0 port 12 priority 0 path cost 0
	nd6 options=201<PERFORMNUD,DAD>
	media: <unknown type>
	status: inactive
ap1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
	options=400<CHANNEL_IO>
	ether f6:d4:88:66:1d:d4 
	media: autoselect
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=6463<RXCSUM,TXCSUM,TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>
	ether f4:d4:88:66:1d:d4 
	inet 192.168.0.198 netmask 0xffffff00 broadcast 192.168.0.255
	media: autoselect
	status: active
awdl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=6463<RXCSUM,TXCSUM,TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>
	ether 66:bd:01:0f:67:49 
	inet6 fe80::64bd:1ff:fe0f:6749%awdl0 prefixlen 64 scopeid 0x10 
	nd6 options=201<PERFORMNUD,DAD>
	media: autoselect
	status: active
llw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=400<CHANNEL_IO>
	ether 66:bd:01:0f:67:49 
	inet6 fe80::64bd:1ff:fe0f:6749%llw0 prefixlen 64 scopeid 0x11 
	nd6 options=201<PERFORMNUD,DAD>
	media: autoselect
	status: inactive
utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380
	inet6 fe80::8f58:c41e:7409:f15c%utun0 prefixlen 64 scopeid 0x12 
	nd6 options=201<PERFORMNUD,DAD>
utun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000
	inet6 fe80::248a:bee0:2a7d:7533%utun1 prefixlen 64 scopeid 0x13 
	nd6 options=201<PERFORMNUD,DAD>
utun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1000
	inet6 fe80::ce81:b1c:bd2c:69e%utun2 prefixlen 64 scopeid 0x14 
	nd6 options=201<PERFORMNUD,DAD>
utun3: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1400
-----------------------------------
$ launchctl list | grep com.qiuyuzhou.
3207	0	application.com.qiuyuzhou.ShadowsocksX-NG.6123921.6124167
-	0	com.qiuyuzhou.ShadowsocksX-NG.LaunchHelper
-	255	com.qiuyuzhou.shadowsocksX-NG.local
-----------------------------------
@AlohaWorld
Copy link

I've got the same issue. However, this bug only appears when I set ipv6 address as the proxy server. when using ipv4, it works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants