After update to 1.8.7 all config files were overwritten # ll /usr/local/etc/xray-core/ total 40 -rw-r--r-- 1 root wheel 137 Feb 18 07:21 00_log.json -rw-r--r-- 1 root wheel 105 Feb 18 07:21 01_api.json -rw-r--r-- 1 root wheel 19 Feb 18 07:21 02_dns.json -rw-r--r-- 1 root wheel 129 Feb 18 07:21 03_routing.json -rw-r--r-- 1 root wheel 212 Feb 18 07:21 04_policy.json -rw-r--r-- 1 root wheel 24 Feb 18 07:21 05_inbounds.json -rw-r--r-- 1 root wheel 25 Feb 18 07:21 06_outbounds.json -rw-r--r-- 1 root wheel 186 Feb 18 07:21 07_transport.json -rw-r--r-- 1 root wheel 18 Feb 18 07:21 08_stats.json -rw-r--r-- 1 root wheel 70 Feb 18 07:21 09_reverse.json
Ack. Thanks fore reporting. Port make file has bug with config files copy. I will look into it.
Same situation after upgrade to xray-core-1.8.7_2 # ll /usr/local/etc/xray-core/ total 11560 -rw-r--r-- 1 root wheel 137 Mar 11 03:37 00_log.json -rw-r--r-- 1 root wheel 105 Mar 11 03:37 01_api.json -rw-r--r-- 1 root wheel 19 Mar 11 03:37 02_dns.json -rw-r--r-- 1 root wheel 129 Mar 11 03:37 03_routing.json -rw-r--r-- 1 root wheel 212 Mar 11 03:37 04_policy.json -rw-r--r-- 1 root wheel 24 Mar 11 03:37 05_inbounds.json -rw-r--r-- 1 root wheel 25 Mar 11 03:37 06_outbounds.json -rw-r--r-- 1 root wheel 186 Mar 11 03:37 07_transport.json -rw-r--r-- 1 root wheel 18 Mar 11 03:37 08_stats.json -rw-r--r-- 1 root wheel 70 Mar 11 03:37 09_reverse.json
Config files overwrite is fixed in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277798 I will close this bug when patch is merged.
The bug is fixed in the latest port. It should propagate through the standard build cycle.
Again same situation after update. Xray-core-1.8.8_1 # ll /usr/local/etc/xray-core total 88 drwxr-xr-x 2 root wheel - 1024 Apr 14 15:50 ./ drwxr-xr-x 8 root wheel - 512 Apr 8 01:17 ../ -rw-r--r-- 1 root wheel - 137 Apr 8 06:40 00_log.json -rw-r--r-- 1 root wheel - 137 Apr 8 06:40 00_log.json.sample -rw-r--r-- 1 root wheel - 105 Apr 8 06:40 01_api.json -rw-r--r-- 1 root wheel - 105 Apr 8 06:40 01_api.json.sample -rw-r--r-- 1 root wheel - 19 Apr 8 06:40 02_dns.json -rw-r--r-- 1 root wheel - 19 Apr 8 06:40 02_dns.json.sample -rw-r--r-- 1 root wheel - 129 Apr 8 06:40 03_routing.json -rw-r--r-- 1 root wheel - 129 Apr 8 06:40 03_routing.json.sample -rw-r--r-- 1 root wheel - 212 Apr 8 06:40 04_policy.json -rw-r--r-- 1 root wheel - 212 Apr 8 06:40 04_policy.json.sample -rw-r--r-- 1 root wheel - 24 Apr 8 06:40 05_inbounds.json -rw-r--r-- 1 root wheel - 24 Apr 8 06:40 05_inbounds.json.sample -rw-r--r-- 1 root wheel - 25 Apr 8 06:40 06_outbounds.json -rw-r--r-- 1 root wheel - 25 Apr 8 06:40 06_outbounds.json.sample -rw-r--r-- 1 root wheel - 186 Apr 8 06:40 07_transport.json -rw-r--r-- 1 root wheel - 186 Apr 8 06:40 07_transport.json.sample -rw-r--r-- 1 root wheel - 18 Apr 8 06:40 08_stats.json -rw-r--r-- 1 root wheel - 18 Apr 8 06:40 08_stats.json.sample -rw-r--r-- 1 root wheel - 70 Apr 8 06:40 09_reverse.json -rw-r--r-- 1 root wheel - 70 Apr 8 06:40 09_reverse.json.sample
It should be fixed for future updates. I validated that the changed config files are not being overwritten. Sadly, I do not think that fix is working for existing configs before 1.8.8_1
Fized, thanks!