🐛 fix: Filter available protocols to exclude disabled ones in NodeForm

This commit is contained in:
web 2025-09-16 10:30:49 -07:00
parent 2b0cf9a46d
commit 982d2882e9

View File

@ -128,8 +128,8 @@ export default function NodeForm(props: {
const availableProtocols = useMemo(() => {
if (!currentServer?.protocols) return [];
return (currentServer.protocols as Array<{ type: ProtocolName; port?: number }>)
.filter((p) => p.type)
return currentServer.protocols
.filter((p) => p.enable !== false)
.map((p) => ({
protocol: p.type,
port: p.port,