-
- Rule {{ index + 1 }}
-
-
+
+
+ Rule {{ index + 1 }}
+
+
+
{{ a }}
@@ -393,18 +407,20 @@ function regenerateWgKeys() {
+ @click="outbound.settings.peers.push(new Outbound.WireguardSettings.Peer())">
-
- Peer {{ index + 1 }}
-
-
+
+
+ Peer {{ index + 1 }}
+
+
+
@@ -993,9 +1009,9 @@ function regenerateWgKeys() {
.item-heading {
display: flex;
align-items: center;
+ justify-content: space-between;
gap: 8px;
font-weight: 500;
- margin: 8px 0 4px;
opacity: 0.85;
}
diff --git a/frontend/src/pages/xray/OutboundsTab.vue b/frontend/src/pages/xray/OutboundsTab.vue
index 53e25cc9..a0d489dd 100644
--- a/frontend/src/pages/xray/OutboundsTab.vue
+++ b/frontend/src/pages/xray/OutboundsTab.vue
@@ -128,8 +128,11 @@ function outboundAddresses(o) {
case Protocols.Trojan:
serverObj = o.settings?.servers;
break;
- case Protocols.DNS:
- return [`${o.settings?.address || ''}:${o.settings?.port || ''}`];
+ case Protocols.DNS: {
+ const addr = o.settings?.rewriteAddress || o.settings?.address || '';
+ const port = o.settings?.rewritePort || o.settings?.port || '';
+ return addr || port ? [`${addr}:${port}`] : [];
+ }
case Protocols.Wireguard:
return (o.settings?.peers || []).map((p) => p.endpoint);
default: