mirror of
https://github.com/luckjiawei/podux.git
synced 2026-11-30 01:06:47 +00:00
🐛 Fix HTTP proxy Unable add.
This commit is contained in:
1 parent
72a19ef017
commit
e14fca351e
2 files changed
+4
-3
No files matched your search
@@ -572,13 +572,14 @@ export function AddProxyDialog({ open, onOpenChange, onSubmit, initialData }: Ad
|
||||
!formData.type ||
|
||||
!formData.localIp ||
|
||||
!formData.localPort ||
|
||||
!formData.remotePort ||
|
||||
(!isHttpType && !formData.remotePort) ||
|
||||
(isHttpType && !formData.subdomain && !formData.customDomains) ||
|
||||
!!errors.serverId ||
|
||||
!!errors.name ||
|
||||
!!errors.type ||
|
||||
!!errors.localIp ||
|
||||
!!errors.localPort ||
|
||||
!!errors.remotePort ||
|
||||
(!isHttpType && !!errors.remotePort) ||
|
||||
loading
|
||||
}
|
||||
onClick={handleSubmit}
|
||||
|
||||
@@ -128,7 +128,7 @@ export function useProxies() {
|
||||
setSubmitting(true);
|
||||
const body = data || formData;
|
||||
|
||||
await pb.collection("fh_proxies").create(body);
|
||||
await pb.collection("fh_proxies").create({ bootStatus: "offline", ...body });
|
||||
|
||||
await fetchProxies();
|
||||
closeDialog();
|
||||
|
||||
Reference in new issue
Block a user