mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
internal/clientinfo: make SetSelfIP to update new data
So after network changes, the new data will be used instead of the stale old one.
This commit is contained in:
committed by
Cuong Manh Le
parent
0c74838740
commit
715bcc4aa1
@@ -173,6 +173,8 @@ func (t *Table) SetSelfIP(ip string) {
|
||||
t.selfIPLock.Lock()
|
||||
defer t.selfIPLock.Unlock()
|
||||
t.selfIP = ip
|
||||
t.dhcp.selfIP = t.selfIP
|
||||
t.dhcp.addSelf()
|
||||
}
|
||||
|
||||
func (t *Table) init() {
|
||||
|
||||
Reference in New Issue
Block a user