Commit graph

15 commits

Author SHA1 Message Date
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