picoHz / taxy

A reverse proxy server with built-in WebUI, supporting TCP/UDP/HTTP/TLS/WebSocket, written in Rust.
https://taxy.dev/
MIT License
88 stars 6 forks source link

Fix server URL validation and ignore invalid routes #81

Closed picoHz closed 3 months ago

picoHz commented 3 months ago

This pull request fixes an issue with server URL validation in the API. Previously, the code was using the Url type for server URLs, but it has been updated to use a new ServerUrl type instead. The ServerUrl type ensures that the URL is valid and includes a valid authority. Additionally, the code now ignores invalid routes in the Router::new function. These changes improve the overall reliability and robustness of the API.