TUN-7787: cloudflared only list ip routes targeted for cfd_tunnel
This commit is contained in:
parent
958b6f1d24
commit
f1d6f0c0be
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue