GZTimeWalker / GZCTF

The GZ::CTF project, an open source CTF platform.
https://docs.ctf.gzti.me/
GNU Affero General Public License v3.0
737 stars 83 forks source link

fix: use `System.Uri` to parse host from k8s config #214

Closed kdxcxs closed 5 months ago

kdxcxs commented 5 months ago

Error will be thrown when there is no ":" in config.Host(e.g. https://api.foo.bar), fixed by replacing manual substring extraction with the System.Uri object's Host property to retrieve the host IP.

GZTimeWalker commented 5 months ago

Thanks!