mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-21 08:26:40 +00:00
fix(settings): harden settings and diagnostic controls
This commit is contained in:
@@ -200,6 +200,9 @@ describe('useDownloadStore', () => {
|
||||
expect(normalizeCustomProxy(' socks5://127.0.0.1 ', 1080)).toBeNull();
|
||||
expect(normalizeCustomProxy('https://proxy.local', 8443)).toBeNull();
|
||||
expect(normalizeCustomProxy('127.0.0.1', NaN)).toBeNull();
|
||||
expect(normalizeCustomProxy('127.0.0.1:9000', 8080)).toBeNull();
|
||||
expect(normalizeCustomProxy('127.0.0.1/path', 8080)).toBeNull();
|
||||
expect(normalizeCustomProxy('[::1]', 8080)).toBe('http://[::1]:8080');
|
||||
|
||||
expect(await getProxyArgs({
|
||||
proxyMode: 'none',
|
||||
|
||||
Reference in New Issue
Block a user