File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
All notable changes to this project will be documented in this file.
3
3
4
+ ## [ v2.0.2] - 2024-09-
5
+ ### Fixed
6
+ - Error when ` IFACES ` =""
7
+
4
8
## [ v2.0.1] - 2024-09-02
5
9
### Added
6
10
- ` Vlans ` and ` docker0 ` support [ #47 ] ( https://github.com/aceberg/WatchYourLAN/issues/47 ) . Thanks [ thehijacker] ( https://github.com/thehijacker ) !
Original file line number Diff line number Diff line change 7
7
[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/aceberg/WatchYourLAN )] ( https://goreportcard.com/report/github.com/aceberg/WatchYourLAN )
8
8
[ ![ Maintainability] ( https://api.codeclimate.com/v1/badges/46b17f99edc1726b5d7d/maintainability )] ( https://codeclimate.com/github/aceberg/WatchYourLAN/maintainability )
9
9
![ Docker Image Size (latest semver)] ( https://img.shields.io/docker/image-size/aceberg/watchyourlan )
10
- ![ Docker Pulls] ( https://img.shields.io/docker/pulls/aceberg/watchyourlan )
10
+ ![ GitHub Discussions] ( https://img.shields.io/github/discussions/aceberg/WatchYourLAN )
11
+
11
12
12
13
Lightweight network IP scanner with web GUI. Features:
13
14
- Send notification when new host is found
Original file line number Diff line number Diff line change @@ -68,17 +68,21 @@ func parseOutput(text, iface string) []models.Host {
68
68
// Scan all interfaces
69
69
func Scan (ifaces , args string , strs []string ) []models.Host {
70
70
var text string
71
+ var p []string
71
72
var foundHosts = []models.Host {}
72
73
arpArgs = args
73
74
74
- p := strings . Split ( ifaces , " " )
75
+ if ifaces != "" {
75
76
76
- for _ , iface := range p {
77
- slog .Debug ("Scanning interface " + iface )
78
- text = scanIface (iface )
79
- slog .Debug ("Found IPs: \n " + text )
77
+ p = strings .Split (ifaces , " " )
78
+
79
+ for _ , iface := range p {
80
+ slog .Debug ("Scanning interface " + iface )
81
+ text = scanIface (iface )
82
+ slog .Debug ("Found IPs: \n " + text )
80
83
81
- foundHosts = append (foundHosts , parseOutput (text , iface )... )
84
+ foundHosts = append (foundHosts , parseOutput (text , iface )... )
85
+ }
82
86
}
83
87
84
88
for _ , s := range strs {
You can’t perform that action at this time.
0 commit comments