fleaz / CptHook

Receive webhooks from different applications and post them to IRC channels
MIT License
17 stars 9 forks source link

[prometheus] Hostname filter does not work with IPv6 addresses #42

Closed fleaz closed 5 years ago

fleaz commented 5 years ago

When the instance name is an IPv6 address, the hostname filter cuts the last part, thinking it is the port number.

Example: fd01:67c:2ed8:a::56:1 becomes fd01:67c:2ed8:a::56 afterwards