mirror of
https://github.com/fatedier/frp.git
synced 2026-07-29 12:09:18 +08:00
web/frpc: support virtual net visitor plugin (#5414)
This commit is contained in:
@@ -107,6 +107,18 @@ const formRules: FormRules = {
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
pluginDestinationIP: [
|
||||
{
|
||||
validator: (_rule, value, callback) => {
|
||||
if (form.value.pluginType === 'virtual_net' && !value?.trim()) {
|
||||
callback(new Error('Destination IP is required for virtual_net'))
|
||||
return
|
||||
}
|
||||
callback()
|
||||
},
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
const goBack = () => {
|
||||
|
||||
Reference in New Issue
Block a user