Skip to content

Commit

Permalink
Merge pull request #23 from vyos/mergify/bp/sagitta/pr-21
Browse files Browse the repository at this point in the history
T5741: Update dhclient lease path to /run/dhclient (backport #21)
  • Loading branch information
c-po committed Dec 11, 2023
2 parents 6cce69b + cb3de3c commit f9e6445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lbdata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ LBData::update_dhcp_nexthop()
LBData::InterfaceHealthIter h_iter = _iface_health_coll.begin();
while (h_iter != _iface_health_coll.end()) {
if (h_iter->second._nexthop == "dhcp") {
string file("/var/lib/dhcp/dhclient_"+h_iter->first+".lease");
string file("/run/dhclient/dhclient_"+h_iter->first+".lease");
FILE *fp = fopen(file.c_str(),"r");
if (fp) {
char str[1025];
Expand Down

0 comments on commit f9e6445

Please sign in to comment.