Bugfix: host form public ip interface param
This commit is contained in:
@@ -37,6 +37,9 @@ export default async function clientFetchIP({
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
|||||||
@@ -35,13 +35,15 @@ export default function AddHostFormPublicIP({
|
|||||||
});
|
});
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!form.interface) {
|
const ntwk_interface = form.interface || existing_full?.interface;
|
||||||
|
|
||||||
|
if (!ntwk_interface) {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
clientFetchIP({
|
clientFetchIP({
|
||||||
iface: form.interface,
|
iface: ntwk_interface,
|
||||||
local: useLocalIP,
|
local: useLocalIP,
|
||||||
setForm,
|
setForm,
|
||||||
setLoading,
|
setLoading,
|
||||||
|
|||||||
Reference in New Issue
Block a user