Skip to content

Commit

Permalink
{fix} outbound - wireguard
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Jun 7, 2024
1 parent e1ef746 commit 7132854
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion web/assets/js/model/outbound.js
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,6 @@ Outbound.WireguardSettings = class extends CommonClass {
super();
this.mtu = mtu;
this.secretKey = secretKey;
this.pubKey = secretKey.length>0 ? Wireguard.generateKeypair(secretKey).publicKey : '';
this.address = address instanceof Array ? address.join(',') : address;
this.workers = workers;
this.domainStrategy = domainStrategy;
Expand Down
14 changes: 1 addition & 13 deletions web/html/xui/form/outbound.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,9 @@
</template>
<a-input v-model.trim="outbound.settings.address"></a-input>
</a-form-item>
<a-form-item>
<template slot="label">
<a-tooltip>
<template slot="title">
<span>{{ i18n "reset" }}</span>
</template>
{{ i18n "pages.xray.wireguard.secretKey" }}
<a-icon type="sync" @click="[outbound.settings.pubKey, outbound.settings.secretKey] = Object.values(Wireguard.generateKeypair())"></a-icon>
</a-tooltip>
</template>
<a-form-item label='{{ i18n "pages.xray.wireguard.secretKey" }}'>
<a-input v-model.trim="outbound.settings.secretKey"></a-input>
</a-form-item>
<a-form-item label='{{ i18n "pages.xray.wireguard.publicKey" }}'>
<a-input disabled v-model="outbound.settings.pubKey"></a-input>
</a-form-item>
<a-form-item label='{{ i18n "pages.xray.wireguard.domainStrategy" }}'>
<a-select v-model="outbound.settings.domainStrategy" :dropdown-class-name="themeSwitcher.currentTheme">
<a-select-option v-for="wds in ['', ...WireguardDomainStrategy]" :value="wds">[[ wds ]]</a-select-option>
Expand Down

5 comments on commit 7132854

@vinsen9999
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wireGuard 依然无法使用,请求帮助。

@MrEagle123
Copy link

@MrEagle123 MrEagle123 commented on 7132854 Jun 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wireGuard 依然无法使用,请求帮助。

I have problem with WireGuard in v2.3.5 too.
Use temporarily image v2.3.3

@MHSanaei
Copy link
Owner Author

@MHSanaei MHSanaei commented on 7132854 Jun 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vinsen9999 @MrEagle123
If you have any problems with the WireGuard inbound, change the Xray core version.
It's not about the panel.
Good luck.

@MrEagle123
Copy link

@MrEagle123 MrEagle123 commented on 7132854 Jun 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, changing Xray core to 1.8.11 solve this problem.
Change-XRay-Core

@vinsen9999
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YES, TKS .

Please sign in to comment.