diff --git a/web/assets/css/custom.css b/web/assets/css/custom.css
index f4a13b51..53c1168a 100644
--- a/web/assets/css/custom.css
+++ b/web/assets/css/custom.css
@@ -1171,3 +1171,7 @@ b, strong {
background-color: var(--dark-color-btn-danger-hover);
border-color: var(--dark-color-btn-danger-hover);
}
+
+.dark .ant-alert-close-icon .anticon-close:hover {
+ color: rgb(255 255 255);
+}
\ No newline at end of file
diff --git a/web/html/xui/xray_balancer_modal.html b/web/html/xui/xray_balancer_modal.html
index 627aecf6..78b15fda 100644
--- a/web/html/xui/xray_balancer_modal.html
+++ b/web/html/xui/xray_balancer_modal.html
@@ -23,7 +23,8 @@
Round Robin
-
+
[[ tag ]]
@@ -74,17 +75,18 @@
this.balancerTags = balancerTags.filter((tag) => tag != balancer.tag);
this.outboundTags = app.templateSettings.outbounds.filter((o) => !ObjectUtil.isEmpty(o.tag)).map(obj => obj.tag);
this.isEdit = isEdit;
- this.check()
+ this.check();
+ this.checkSelector();
},
close() {
- balancerModal.visible = false;
- balancerModal.loading(false);
+ this.visible = false;
+ this.loading(false);
},
loading(loading=true) {
- balancerModal.confirmLoading = loading;
+ this.confirmLoading = loading;
},
check() {
- if (balancerModal.balancer.tag == '' || balancerModal.balancerTags.includes(balancerModal.balancer.tag)) {
+ if (this.balancer.tag == '' || this.balancerTags.includes(this.balancer.tag)) {
this.duplicateTag = true;
this.isValid = false;
} else {
@@ -93,7 +95,7 @@
}
},
checkSelector() {
- balancerModal.emptySelector = balancerModal.balancer.selector.length == 0;
+ this.emptySelector = this.balancer.selector.length == 0;
}
};
diff --git a/web/service/inbound.go b/web/service/inbound.go
index 6a3dac5d..17458f52 100644
--- a/web/service/inbound.go
+++ b/web/service/inbound.go
@@ -1803,6 +1803,8 @@ func (s *InboundService) MigrationRequirements() {
}
}()
+ db.Migrator().DropIndex(&model.Inbound{}, "port")
+
// Fix inbounds based problems
var inbounds []*model.Inbound
err = tx.Model(model.Inbound{}).Where("protocol IN (?)", []string{"vmess", "vless", "trojan"}).Find(&inbounds).Error