Wireguard

Latest version: v1.0.0

Safety actively analyzes 626071 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.0.0

What's Changed

* Simplified peer removal by jnhmcknight in https://github.com/fictivekin/wireguard/pull/16
* Peer Service Interface and Config Customizability by jnhmcknight in https://github.com/fictivekin/wireguard/pull/17

**NOTE:** This release contains a breaking change as all references to `.config()` need to be updated to be `.config` and any custom `Config` class needs to be either passed to the `Peer` or `Server` object at instantiation or will need to be set as `.config_cls = MyCustomConfigClass` at any later point in the `Peer` or `Server` objects' lifecycle.

**Full Changelog**: https://github.com/fictivekin/wireguard/compare/v0.4.0...v1.0.0

0.4.0

- Allows passing a list of peer dict info for the `peers` keyword during Peer/Server instantiation (10)
- Fixes a bug with passing a list of Pre/Post Up/Down directives, which was causing undesired nesting (12). Thanks UrfinJuice11 for identifying that problem.

0.3.0

What's Changed
* Allows setting the IP directly via the server subnet argument by jnhmcknight in https://github.com/fictivekin/wireguard/pull/5
* Built-in JSON exports by jnhmcknight in https://github.com/fictivekin/wireguard/pull/7

Previously, IPv4 and IPv6 weren't cleanly handled, and you could arrive at situations where one was overriding the other. This cleans that up, handling each separately, but allowing the instantiation to have them combined, as WireGuard itself has them combined within config files.

**Full Changelog**: https://github.com/fictivekin/wireguard/compare/v0.2.5...v0.3.0

0.2.5

Fixes:

- Adds a blank line between peer sections in outputted files for better readability: 4. Thanks, kraysx7

0.2.4

Bug Fixes:

- Empty config values should not output broken directives to the WireGuard config files. af03a8f2a2429c44cd4dc8dcfb8f7e181206ec6b
- Keepalive was affecting the wrong config file. af03a8f2a2429c44cd4dc8dcfb8f7e181206ec6b
- Preshared keys were not being put in both ends of a peer configuration. af03a8f2a2429c44cd4dc8dcfb8f7e181206ec6b
- Not all appropriate options were being inherited by a peer in a server<->peer configuration. bd0dc73ead56d2ff019d44cc9d9835996b0ab6b9
- Tuples were not being handled correctly where lists and sets were accepted. 75cf466be3a05b9e10d711e34a42ae26916e2308

Enhancements:

- Adds support for using the MTU and Table directives in the WireGuard config files. 3 Thanks marneu!
- Test suite has been expanded. 5b1561e8f56195134209c97d4452b8bc82da595f
- Better error messages for certain cases. 75cf466be3a05b9e10d711e34a42ae26916e2308

0.2.3

Bug fixes:
- Under certain conditions, generated config files might be missing some newlines which result in WireGuard syntax errors. Thanks marneu

Enhancements:
- Be explicit about which encoding to use when writing config files
- Use `None` as default value for a method's argument and handle inside the method

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.