net_widgets icon indicating copy to clipboard operation
net_widgets copied to clipboard

wired network indicator missing vpn icon

Open trooper91 opened this issue 5 years ago • 1 comments

hey there, i ve installed your plugin and it seems to work. if i am connected to the network the indicator is white and red otherwise. but when i am connected to a vpnc vpn which should work regarding your readme there is no change of the indicator icon. even if i restart awesome the indicator icon doesn't change. the config part of net_widgets looks like this

--net_widgets
net_wired = net_widgets.indicator({
    interfaces  = {"tun0", "eno1"},
    timeout     = 5,
    skipvpncheck = false
})

do i miss something? i even played around with the interfaces. if i am using tun0 only (which is my vpn connection) the indicator goes red.

trooper91 avatar Oct 06 '20 00:10 trooper91

I had a similar issue, which I could fix by commenting out the following lines in indicator.lua:

35   if args.skipvpncheck == nil or args.skiproutes or args.skipcmdline then
36     args.skipvpncheck = true
37   end

This line turns off vpncheck if skiproutes or skipcmdline are enabled (which they are by default). As far as I can tell neither of these is necessary for the VPN check function.

brisk0 avatar Nov 25 '20 01:11 brisk0