diff --git a/cannaiq/src/pages/Proxies.tsx b/cannaiq/src/pages/Proxies.tsx index 9600d9ad..4dd0b87a 100755 --- a/cannaiq/src/pages/Proxies.tsx +++ b/cannaiq/src/pages/Proxies.tsx @@ -511,6 +511,18 @@ function AddProxyForm({ onClose, onSuccess }: { onClose: () => void; onSuccess: }; } + // Format: protocol://host:port:username:password (non-standard colon format from some providers) + match = line.match(/^(https?|socks5):\/\/([^:]+):(\d+):([^:]+):(.+)$/); + if (match) { + return { + protocol: match[1], + host: match[2], + port: parseInt(match[3]), + username: match[4], + password: match[5] + }; + } + // Format: protocol://host:port match = line.match(/^(https?|socks5):\/\/([^:]+):(\d+)$/); if (match) { @@ -742,7 +754,7 @@ function AddProxyForm({ onClose, onSuccess }: { onClose: () => void; onSuccess: