{"action":"created","issue":{"url":"https://api.github.com/repos/mate-desktop/mate-netspeed/issues/35","labels_url":"https://api.github.com/repos/mate-desktop/mate-netspeed/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/mate-desktop/mate-netspeed/issues/35/comments","events_url":"https://api.github.com/repos/mate-desktop/mate-netspeed/issues/35/events","html_url":"https://github.com/mate-desktop/mate-netspeed/issues/35","id":115708984,"number":35,"title":"Feature request: Switch to active interface","user":{"login":"jean","id":84800,"avatar_url":"https://avatars.githubusercontent.com/u/84800?v=3","gravatar_id":"","url":"https://api.github.com/users/jean","html_url":"https://github.com/jean","followers_url":"https://api.github.com/users/jean/followers","following_url":"https://api.github.com/users/jean/following{/other_user}","gists_url":"https://api.github.com/users/jean/gists{/gist_id}","starred_url":"https://api.github.com/users/jean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean/subscriptions","organizations_url":"https://api.github.com/users/jean/orgs","repos_url":"https://api.github.com/users/jean/repos","events_url":"https://api.github.com/users/jean/events{/privacy}","received_events_url":"https://api.github.com/users/jean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-08T04:31:10Z","updated_at":"2015-11-09T14:26:58Z","closed_at":null,"body":"It would be cool if the widget could switch to the currently active interface. E.g. when switching from `wlan0` to `usb0`. "},"comment":{"url":"https://api.github.com/repos/mate-desktop/mate-netspeed/issues/comments/155078142","html_url":"https://github.com/mate-desktop/mate-netspeed/issues/35#issuecomment-155078142","issue_url":"https://api.github.com/repos/mate-desktop/mate-netspeed/issues/35","id":155078142,"user":{"login":"jean","id":84800,"avatar_url":"https://avatars.githubusercontent.com/u/84800?v=3","gravatar_id":"","url":"https://api.github.com/users/jean","html_url":"https://github.com/jean","followers_url":"https://api.github.com/users/jean/followers","following_url":"https://api.github.com/users/jean/following{/other_user}","gists_url":"https://api.github.com/users/jean/gists{/gist_id}","starred_url":"https://api.github.com/users/jean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean/subscriptions","organizations_url":"https://api.github.com/users/jean/orgs","repos_url":"https://api.github.com/users/jean/repos","events_url":"https://api.github.com/users/jean/events{/privacy}","received_events_url":"https://api.github.com/users/jean/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T14:26:58Z","updated_at":"2015-11-09T14:26:58Z","body":"> Which one should be considered active (let's assume they're all up and\nrunning in ifconfig's output)?\n\nHmm the one that's being used ... i.e. I see if `usb0` is up, then `wlan0`\nis ignored, even though both appear in `ifconfig`'s output.\nI think this depends on the interface metric:\n\n```\n$ route -n\nKernel IP routing table\nDestination     Gateway         Genmask         Flags Metric Ref    Use\nIface\n0.0.0.0         192.168.42.129  0.0.0.0         UG    0      0        0 usb0\n192.168.42.0    0.0.0.0         255.255.255.0   U     1      0        0 usb0\n192.168.43.0    0.0.0.0         255.255.255.0   U     9      0        0\nwlan0\n```\n\nIt looks like it's the interface with a lower metric that is used.\nI don't know how the metric gets set.\n"}}