Hologos / traffic-splitter

Alter your routing table with ease.
0 stars 0 forks source link

No default gateway found #10

Closed Hologos closed 5 years ago

Hologos commented 5 years ago

In macOS Mojave, discovering default doesn't work:

$ sudo traffic-splitter -d en2 -t en0 -c ~/.config/traffic-splitter/work.yml
Password:

Transforming routing table

No default gateway for default interface found.

The error is caused by regex that anchors the interface name to the end of line. The line now optionally contain whitespaces.

https://github.com/Hologos/traffic-splitter/blob/38594e77957a96542c63c9e50a831e59962cf635/libs/routing-table.sh#L53