TUN-7787: cloudflared only list ip routes targeted for cfd_tunnel

This commit is contained in:
João Oliveirinha 2023-09-20 12:10:23 +01:00
parent 958b6f1d24
commit f1d6f0c0be
1 changed files with 6 additions and 1 deletions

View File

@ -123,7 +123,12 @@ func cidrFromFlag(c *cli.Context, flag cli.StringFlag) (*net.IPNet, error) {
}
func NewIPRouteFilter() *IpRouteFilter {
return &IpRouteFilter{queryParams: url.Values{}}
values := &IpRouteFilter{queryParams: url.Values{}}
// always list cfd_tunnel routes only
values.queryParams.Set("tun_types", "cfd_tunnel")
return values
}
func (f *IpRouteFilter) CommentIs(comment string) {