Wireguard - kernel Tun

This commit is contained in:
mhsanaei
2024-10-16 12:06:47 +02:00
parent dff2496d73
commit ac7901abba
6 changed files with 28 additions and 3 deletions

View File

@@ -150,6 +150,9 @@
<a-form-item label='Kernel Mode'>
<a-switch v-model="outbound.settings.kernelMode"></a-switch>
</a-form-item>
<a-form-item label='Kernel Tun'>
<a-switch v-model="outbound.settings.kernelTun"></a-switch>
</a-form-item>
<a-form-item>
<template slot="label">
<a-tooltip>

View File

@@ -21,6 +21,9 @@
<a-form-item label='Kernel Mode'>
<a-switch v-model="inbound.settings.kernelMode"></a-switch>
</a-form-item>
<a-form-item label='Kernel Tun'>
<a-switch v-model="inbound.settings.kernelTun"></a-switch>
</a-form-item>
<a-form-item label="Peers">
<a-button icon="plus" type="primary" size="small" @click="inbound.settings.addPeer()"></a-button>
</a-form-item>

View File

@@ -373,6 +373,10 @@
<td>Kernel Mode</td>
<td>[[ inbound.settings.kernelMode ]]</td>
</tr>
<tr>
<td>Kernel Tun</td>
<td>[[ inbound.settings.kernelTun ]]</td>
</tr>
<template v-for="(peer, index) in inbound.settings.peers">
<tr>
<td colspan="2">

View File

@@ -147,7 +147,8 @@
publicKey: peer.public_key,
endpoint: peer.endpoint.host,
}],
kernelMode: false
kernelMode: false,
kernelTun: false,
}
});
}