fix default address of inbound in link #656

This commit is contained in:
Alireza Ahmadi
2023-11-29 23:55:24 +01:00
parent b69f0cfe82
commit 02053fea83

View File

@@ -1340,7 +1340,7 @@ class Inbound extends XrayCommonClass {
genAllLinks(remark='', client){
let result = [];
let email = client ? client.email : '';
let addr = this.listen;
let addr = !ObjectUtil.isEmpty(this.listen) && this.listen !== "0.0.0.0" ? this.listen : location.hostname;
let port = this.port
if(ObjectUtil.isArrEmpty(this.stream.externalProxy)){
let r = [remark, email].filter(x => x.length > 0).join('-');