mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +02:00
Various improvements and bug fixes
- Watch more events for lease file changes - Improving network up detection by using bootstrap IPv6 along side IPv4 one. - Emitting log to notice user that ctrld is starting. - Using systemd wrapper to provide correct status. - Restoring DNS on stop on Windows.
This commit is contained in:
@@ -53,7 +53,7 @@ func (d *dhcp) watchChanges() {
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
if event.Has(fsnotify.Write) {
|
||||
if event.Has(fsnotify.Write) || event.Has(fsnotify.Rename) || event.Has(fsnotify.Chmod) || event.Has(fsnotify.Remove) {
|
||||
format := clientInfoFiles[event.Name]
|
||||
if err := d.readLeaseFile(event.Name, format); err != nil && !os.IsNotExist(err) {
|
||||
ctrld.ProxyLogger.Load().Err(err).Str("file", event.Name).Msg("leases file changed but failed to update client info")
|
||||
|
||||
Reference in New Issue
Block a user