diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lbdata.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lbdata.cc b/src/lbdata.cc index 7226b84..2872258 100644 --- a/src/lbdata.cc +++ b/src/lbdata.cc @@ -346,6 +346,17 @@ LBData::update_dhcp_nexthop() } fclose(fp); } + else { + //check if this is a ppp interface + string pppfile("/var/load-balance/ppp/"+h_iter->first); + FILE *fp = fopen(pppfile.c_str(),"r"); + if (fp) { + char str[1025]; + if (fgets(str, 1024, fp)) { + h_iter->second._dhcp_nexthop = string(str); + } + } + } } ++h_iter; } |
