Commit graph

32 commits

Author SHA1 Message Date
Francesco Cogno
9f0eb7f050
Issue/100 (#101)
* Updating clap

* completed clap ugprade

* Upgraded other deps

* removed unused use

* fixed tests

* exported delay

* fixed multiple params

* added actual calculation
2022-11-20 16:13:06 +01:00
Francesco Cogno
eb7455fa85
Clarify option behavior (#93)
* version bump, README fix

* Fixed "important" sign
2022-03-29 10:23:40 +02:00
Francesco Cogno
61de41169b
Dependency refresh (#90) 2022-03-11 17:48:35 +01:00
Francesco Cogno
72d3f7393e
Escape friendly name double quote (#84)
* escape friendly name

* Updated README
2021-11-03 11:36:05 +01:00
Francesco Cogno
5b709b19f1
Ability to use env vars (#83)
* clippy

* exported variables

* docs

* updated deps

* typo

* version in docs

* better docs
2021-11-03 11:14:14 +01:00
Francesco Cogno
62fe64e1c0 swapped clippy dep version from * to 0.0.3 2021-08-06 09:50:53 +02:00
Quentin McGaw
8f44776745
Linting with Clippy (#69)
* Dockerfile: add test stage with cargo test entrypoint

* Workflows: merge all in docker.yml
- Run cargo test in docker.yml workflow
- Manage PRs, releases, branches and latest altogether with variables

* Workflows: update dockerhub description

* Add clippy linting
2021-07-16 15:11:51 +02:00
Francesco Cogno
9d37840b83
Implemented support for multiple peer files (#64) 2021-07-08 11:06:41 +02:00
Francesco Cogno
a07a3d0170
Support for friendly_json comment (#55)
* upgrading deps

* tst

* fixed tests

* Json exposed as strings

* fixed double quote

* bumped version

* corrected semantic version bump

* updated README
2021-03-25 14:17:41 +01:00
Francesco Cogno
4584bd6e50
Bugfix: comments no longer remove friendly names 2021-01-10 11:03:48 +01:00
Francesco Cogno
fa739c423c
Added optional sudo 2020-10-11 16:40:10 +02:00
Francesco Cogno
e77a3e26ee
Support for # key values in comment (friendly_name at the moment) (#44)
* Draft support for friendly_name

* updated version and readme
2020-10-11 16:21:51 +02:00
Francesco Cogno
ec967e7f9d Parse case insensitive 2020-05-10 15:40:45 +02:00
Francesco Cogno
52740036bf
Multiple interfaces from command line support (#31) 2020-05-09 16:48:52 +02:00
Francesco Cogno
2013f8b5af
Split interface name from peer configuration file (#26)
Split interface name from peer configuration file
2020-04-07 10:20:19 +02:00
Francesco Cogno
ceeea75b3c
Support for stderr output in TRACE log level (#25)
* exported stderr

* version bump
2020-03-24 11:57:54 +01:00
Francesco Cogno
ff5806571b support for ipv6 addr in command line 2020-03-24 09:36:13 +01:00
Francesco Cogno
923b70c4b7 migrated to std::future 2019-12-01 19:42:47 +01:00
Francesco Cogno
4612afe684 release v3.2.1 2019-11-08 09:34:17 +01:00
Maximilian Bosch
9a54a8f424
Strip link-local zone ids from IPv6 socket addrs
This is a fairly ugly hack to temporarily work around the issue #10.
Until now Rust doesn't support so-called zone-ids[1] in link-local IPv6
socket-addresses and has a pending RFC on this topic. As I'm
encountering this issue on one of my machines I decided to work around
this issue (for now) by removing the zone-id from the IPv6 address.

This won't harm any other cases as `regex.replace_all` simply returns
the input if the regex doesn't match:

```
>> extern crate regex;
>> let re = regex::Regex::new(r"^\[(?P<ip>[A-Fa-f0-9:]+)%(.*)\]:(?P<port>[0-9]+)$");
>> let rs = re.replace_all("fairly unrelated stuff", "[$ip]:$port");
>> rs
"fairly unrelated stuff"
```

Please note that (1) this regex isn't RFC-compliant[2] and is just a
heuristic to remove zone-ids that currently break this exporter and
(2) this is something that probably shouldn't be merged as-is. I mainly
pushed this since I needed a workaround for this issue (and others
probably too), but it may be better to wait for proper support from the
language.

[1] https://tools.ietf.org/html/rfc4007#section-11
2019-11-02 19:48:16 +01:00
Francesco Cogno
e04a3f833b
wg show <interface> if specified in the command line (#17)
Using `interface` instead of `all` if specified
2019-10-13 19:42:44 +02:00
Francesco Cogno
9e5e306899 default IP to 0.0.0.0 2019-09-27 11:01:27 +02:00
Francesco Cogno
067136de45
swapped rx-tx 2019-09-25 20:22:27 +02:00
Francesco Cogno
5e0f111bd9 Export remote information behind optional flag 2019-07-31 15:24:52 +02:00
Francesco Cogno
c987073210
Replaced local_ip + local_port with allowed_ips 2019-07-09 17:55:03 +02:00
Francesco Cogno
ee164d2f73 Exported boilerplate to external crate 2019-06-09 20:09:06 +02:00
Francesco Cogno
70c2eff919
Added Travis integration and fixed failing tests 2019-06-03 11:23:02 +02:00
Francesco Cogno
3680ceb0ec
modified output 2019-05-31 13:20:01 +02:00
Francesco Cogno
1d92df41d6
Changed default port to 9586 2019-05-20 11:23:28 +02:00
Francesco Cogno
13eddbec91
Fixed dependencies 2019-05-20 11:06:26 +02:00
Francesco Cogno
792a821de0
Added sanity checks 2019-05-17 10:17:06 +02:00
Francesco Cogno
143a450778
Initial commit 2019-04-23 23:06:35 +02:00