Skip to content

Commit 4ea54d7

Browse files
committed
code review updates for proxy testing
1 parent 5f8b000 commit 4ea54d7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/custom/system/ProxyConfigDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface ProxyConffigDialogProps {
4646
const ProxyUpdateSchema = z.object({
4747
id: z.union([z.number(), z.string()]).optional(),
4848
proxy_ip: z.string(),
49-
proxy_port: z.coerce.number().positive(),
49+
proxy_port: z.coerce.number().positive().max(65535),
5050
description: z.string().optional(),
5151
status: z.union([z.nativeEnum(ProxyStatus), z.number()]).optional(),
5252
username: z.string().optional(),

src/hooks/useProxies.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function useProxies(props?: UseProxyProps) {
108108

109109
const testMutation = useMutation({
110110
mutationFn: systemService.testProxy,
111-
onMutate: (id, data) => {
111+
onMutate: (id, _context) => {
112112
toast({
113113
title: `Proxy with id = ${id} test started`,
114114
duration: 2000,

0 commit comments

Comments
 (0)