Commit 6d0b571
committed
shelldriver: allow dashes and dots in device names
The `get_ip_addresses` may be called with a specific device and returns
alls IP addresses on that interface. Due to a limitation in the regex,
devices including either dashes or dots aren't detected.
On the OpenWrt distributions the default device is called `br-lan`,
usually connecting ethernet ports and WiFi devices. Likewise dots are
attached to the device name to specify VLANs.
This commit extends the regex to support both dashes and dots.
Signed-off-by: Paul Spooren <mail@aparcar.org>1 parent fe37a35 commit 6d0b571
2 files changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
| 599 | + | |
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
0 commit comments