File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
core/frontend/src/components/beacon Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,19 @@ export default Vue.extend({
73
73
return beacon .available_domains .filter ((entry ) => entry .interface_type === InterfaceType .WIRED )
74
74
},
75
75
wireless_interface_domains(): Domain [] {
76
- return beacon .available_domains .filter ((entry ) => entry .interface_type !== InterfaceType .WIRED )
76
+ return beacon .available_domains .filter (
77
+ (entry ) => entry .interface_type === InterfaceType .WIFI || entry .interface_type === InterfaceType .HOTSPOT ,
78
+ )
77
79
},
78
80
is_connected_to_wifi(): boolean {
79
- return this .wireless_interface_domains .some ((domain ) => domain .ip === beacon .nginx_ip_address )
81
+ const is_on_wifi = this .wireless_interface_domains .some ((domain ) => domain .ip === beacon .nginx_ip_address )
82
+ const is_on_wired = this .wired_interface_domains .some ((domain ) => domain .ip === beacon .nginx_ip_address )
83
+
84
+ if (is_on_wifi && is_on_wired ) {
85
+ console .debug (' Unexpected behavior. There are both Wired and Wireless interfaces sharing the same IP address.' )
86
+ }
87
+
88
+ return is_on_wifi && ! is_on_wired
80
89
},
81
90
},
82
91
mounted() {
You can’t perform that action at this time.
0 commit comments