Configuration
Pactester can be configured using a configuration file named config.toml.
Default configuration file locations:
Linux/macOS:
~/.config/pactester/config.tomlWindows:
C:\Users\<YourUser>\AppData\Roaming\pactester\config.toml
Example configuration file:
pac_url = "http://example.com/wpad.dat"
pac_file = "/path/to/local/wpad.dat"
check_dns = false
use_cache = true
cache_dir = "/path/to/custom/cache"
cache_expires = 86400 # expiration time in seconds (e.g. 86400 = 24 hours)
Available options
pac_urlURL to the remote PAC file.pac_filePath to a local PAC file. This overridespac_urlif specified.check_dnsBoolean value:trueorfalse. Whether to check DNS resolution for hostnames.use_cacheBoolean value:trueorfalse. Enable or disable caching.cache_dirPath to a custom cache directory. If not set, a default system cache location is used.cache_expiresCache expiration time in seconds.
Note
Command-line arguments always take priority over configuration file settings.