Francesco Cogno
73e0b12c22
added missing startup flag
2020-10-11 16:48:08 +02: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
Konstantin Zamyakin
2a91bc5332
add ability to specify exporter IP address
2019-09-27 00:44:48 +03: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
Maximilian Bosch
691aa809b0
Expose remote_ip
and remote_port
for each WireGuard peer
2019-07-21 18:32:21 +02:00
Francesco Cogno
1b40335280
Label split option
2019-07-11 15:31:25 +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
2cd6f2087f
Merge pull request #6 from MindFlavor/travis/pr
...
Added Travis integration and fixed failing tests
2019-06-03 11:23:44 +02:00
Francesco Cogno
70c2eff919
Added Travis integration and fixed failing tests
2019-06-03 11:23:02 +02:00
Maximilian Bosch
1b4a7a2df1
Parse strings using std::net
to support peers with IPv6 addresses
...
Also alter datatype for ports to `u16` as tcp port numbers are unsigned
16bit integers.
2019-06-02 22:06:27 +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
ffd01fdba2
clippy'd
2019-05-20 11:01:04 +02:00
Francesco Cogno
a12ecb50fb
Corrected wrong method
2019-05-20 10:21:32 +02:00
Francesco Cogno
82188d1494
before live test
2019-05-20 10:09:02 +02:00
Francesco Cogno
be9bf63fac
Simpified code
2019-05-20 09:45:20 +02:00
Francesco Cogno
5b983d5e34
adding switch
2019-05-17 19:32:35 +02:00
Francesco Cogno
70178cb8d6
Added proper tests (but more should be addedgit add --all :/)
2019-05-17 11:00:53 +02:00
Francesco Cogno
792a821de0
Added sanity checks
2019-05-17 10:17:06 +02:00
Francesco Cogno
f01d55370d
parsing done, tests to do
2019-05-16 20:45:04 +02:00
Francesco Cogno
1b4d57871e
Started wireguard config file parse
2019-05-15 16:55:07 +02:00
Francesco Cogno
143a450778
Initial commit
2019-04-23 23:06:35 +02:00