summaryrefslogtreecommitdiffstats
path: root/__tests__/load/foxyproxy-template.json
diff options
context:
space:
mode:
Diffstat (limited to '__tests__/load/foxyproxy-template.json')
-rw-r--r--__tests__/load/foxyproxy-template.json69
1 files changed, 69 insertions, 0 deletions
diff --git a/__tests__/load/foxyproxy-template.json b/__tests__/load/foxyproxy-template.json
new file mode 100644
index 0000000..4283aa9
--- /dev/null
+++ b/__tests__/load/foxyproxy-template.json
@@ -0,0 +1,69 @@
+{
+ "mode": "patterns",
+ "proxySettings": [
+ {
+ "title": "some title",
+ "type": 3,
+ "color": "#3860cc",
+ "address": "123.123.123.123",
+ "port": 123,
+ "username": "foo",
+ "password": "bar",
+ "active": true,
+ "whitePatterns": [
+ {
+ "title": "everything",
+ "active": true,
+ "pattern": "*",
+ "type": 1,
+ "protocols": 1
+ }
+ ],
+ "blackPatterns": [
+ {
+ "title": "local hostnames (usually no dots in the name). Pattern exists because 'Do not use this proxy for localhost and intranet/private IP addresses' is checked.",
+ "active": true,
+ "pattern": "^(?:[^:@/]+(?::[^@/]+)?@)?(?:localhost|127\\.\\d+\\.\\d+\\.\\d+)(?::\\d+)?(?:/.*)?$",
+ "type": 2,
+ "protocols": 1
+ },
+ {
+ "title": "local subnets (IANA reserved address space). Pattern exists because 'Do not use this proxy for localhost and intranet/private IP addresses' is checked.",
+ "active": true,
+ "pattern": "^(?:[^:@/]+(?::[^@/]+)?@)?(?:192\\.168\\.\\d+\\.\\d+|10\\.\\d+\\.\\d+\\.\\d+|172\\.(?:1[6789]|2[0-9]|3[01])\\.\\d+\\.\\d+)(?::\\d+)?(?:/.*)?$",
+ "type": 2,
+ "protocols": 1
+ },
+ {
+ "title": "localhost - matches the local host optionally prefixed by a user:password authentication string and optionally suffixed by a port number. The entire local subnet (127.0.0.0/8) matches. Pattern exists because 'Do not use this proxy for localhost and intranet/private IP addresses' is checked.",
+ "active": true,
+ "pattern": "^(?:[^:@/]+(?::[^@/]+)?@)?[\\w-]+(?::\\d+)?(?:/.*)?$",
+ "type": 2,
+ "protocols": 1
+ }
+ ],
+ "id": "5yunu1562958387189"
+ },
+ {
+ "title": "Default",
+ "type": 5,
+ "color": "#0055e5",
+ "active": true,
+ "whitePatterns": [
+ {
+ "title": "all URLs",
+ "active": true,
+ "pattern": "*",
+ "type": 1,
+ "protocols": 1
+ }
+ ],
+ "blackPatterns": [],
+ "id": "k20d21508277536715"
+ }
+ ],
+ "logging": {
+ "size": 500,
+ "active": true
+ }
+} \ No newline at end of file