See https://github.com/XTLS/Xray-core/pull/1000 for details.