Comments (16)
Ahhh, actually I see. On reload its wiping the path it tries to read. So then on the subsequent reload it has no path.
Sweet. latest commits should fix that.
from wag.
Should look like this on multiple config reloads now:
2022/09/09 07:43:38 Wag started successfully, Ctrl + C to stop
2022/09/09 07:43:41 Config reloaded
2022/09/09 07:45:32 Config reloaded
2022/09/09 07:45:33 Config reloaded
2022/09/09 07:45:33 Config reloaded
Have you rerun go build
?
I did also do a binary release here: https://github.com/NHAS/wag/releases/tag/v1.0.4
from wag.
This will probably be from the config change that I made to fix the -config
bug.
I was originally managing the state with IPtables and it was horrific, eBPF and XDP really work quite well in this instance, Im hoping to move the forwarding into the eBPF program if at all possible to further reduce the IPtables rules that I have to add.
As for centralised management, I think that'll be my next goal, at the moment its finding and fixing pain points like these.
Thanks for your compliments!
from wag.
I can replicate this, but only when the configuration file is moved after wag has been started.
From a UX perspective I suppose having the reload
command take the -config
argument may be misleading, as the reload command does not take arguments and purely reloads from previous file location.
from wag.
I'm not moving anything, just an edit (with vi) and reload. Don't know if it causes a change in the file descriptor or something the process is referencing.
from wag.
Hmmmm, I cant replicate that. The program only references the filepath, so nothing fancy is going on with the descriptors.
Im assuming you're running wag with everything in one folder?
from wag.
Hmmmm, I cant replicate that. The program only references the filepath, so nothing fancy is going on with the descriptors.
Im assuming you're running wag with everything in one folder?
Yes, all in /opt/wag
Currently, two terminal windows side by side, so I can see wag running and the effect of reload.
As for centralised management, I think that'll be my next goal, at the moment its finding and fixing pain points like these.
If you get this core stable, it'll be a great base to build on. It just seems very slick in the way it handles the acl's. It's very well suited to my needs.
from wag.
Boom, result!
2022/09/08 19:40:53 able to reload config
2022/09/08 19:40:53 Config reloaded
from wag.
The line able to reload config
should no longer be printed in the fixed version. Can you just make sure that reloading twice works?
from wag.
(Otherwise I may have pushed an old version of wag into release)
from wag.
Ohh
2022/09/08 19:43:15 Wag started successfully, Ctrl + C to stop
2022/09/08 19:43:45 able to reload config
2022/09/08 19:43:45 Config reloaded
2022/09/08 19:44:00 Unable to reload config: Unable to load configuration file from : open : no such file or directory
from wag.
Yep, thats still the old version!
from wag.
$ git pull
From https://github.com/NHAS/wag
* [new tag] v1.0.4 -> v1.0.4
Already up to date.
from wag.
I said I was a go
novice
2022/09/08 19:46:51 Wag started successfully, Ctrl + C to stop
2022/09/08 19:46:55 Config reloaded
2022/09/08 19:46:56 Config reloaded
2022/09/08 19:46:57 Config reloaded
2022/09/08 19:46:57 Config reloaded
from wag.
Sweet! Glad thats all working for ya
from wag.
Many thanks
from wag.
Related Issues (20)
- change the register_device .conf download name HOT 2
- PersistentKeepaliveInterval on server config creates handshake loops while client disconnected HOT 2
- Server Error after deleting a user HOT 7
- Expose port range HOT 7
- DNS IP issue HOT 9
- Site to site HOT 3
- Change totp secret from gui HOT 4
- internal DNS question HOT 2
- Duplicates in AllowedIPs HOT 1
- Wag host IP is not accessible HOT 1
- WebAuthn is not supported on sites with TLS certificate errors. HOT 2
- Port 80 already in use error HOT 2
- Custom templates not working HOT 4
- 2FA for Admin portal HOT 2
- Restore server-side persistent keepalive for logged-in users for a specified time frame HOT 3
- unable to render change password page: template: menus.html:192:56: executing "menus.html" at <.Message>: range can't iterate over HOT 4
- Proxy for the tunnel webserver - MFA portal HOT 1
- connection issues with MS Edge browser, Firefox OK HOT 6
- Unstable network causes wag logout HOT 4
- Performance issue on wag gui HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wag.