1
0
Fork 0

Adding upstream version 7.5.1+dfsg.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-07 01:18:43 +01:00
parent caee58990d
commit 916e3d5336
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
89 changed files with 16891 additions and 0 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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
}
}

View file

@ -0,0 +1,15 @@
# Use foxyproxy-template.json to ouptut foxyproxy-5000-proxies-test-settings.json
# which has 5000 proxies defined. foxyproxy-template.json should have a least 1
# non-default proxy defined. All data in new file is same as the 1 non-default
# proxy except for the proxy id, which must be unqiue
import json, copy
with open('foxyproxy-template.json') as json_file:
data = json.load(json_file)
template = data['proxySettings'][0]['whitePatterns'][0]
for x in range(10000):
new_pattern = copy.deepcopy(template)
data['proxySettings'][0]['whitePatterns'].append(new_pattern)
with open("foxyproxy-10000-patterns-test-settings.json", "w") as write_file:
json.dump(data, write_file)

View file

@ -0,0 +1,17 @@
# Use foxyproxy-template.json to ouptut foxyproxy-5000-proxies-test-settings.json
# which has 5000 proxies defined. foxyproxy-template.json should have a least 1
# non-default proxy defined. All data in new file is same as the 1 non-default
# proxy except for the proxy id, which must be unqiue
import json, copy
with open('foxyproxy-template.json') as json_file:
data = json.load(json_file)
template = data['proxySettings'][0]
for x in range(5000):
new_settings = copy.deepcopy(template)
# Must have unique id
new_settings['id'] = template['id'] + str(x)
data['proxySettings'].append(new_settings)
with open("foxyproxy-5000-proxies-test-settings.json", "w") as write_file:
json.dump(data, write_file)