diff options
| author | slioch <slioch@eng-140.vyatta.com> | 2009-07-08 11:14:08 -0700 |
|---|---|---|
| committer | slioch <slioch@eng-140.vyatta.com> | 2009-07-08 11:20:51 -0700 |
| commit | e04a3602d2be984a8ec71bf8b69d9b56665d1333 (patch) | |
| tree | fd7ec7847f8ec754dd9a72ce268eb74bd7a61625 /src/lboutput.cc | |
| parent | 8fd0204c883ca175c754d96b83433f084a7cc2ee (diff) | |
| download | vyatta-wanloadbalance-e04a3602d2be984a8ec71bf8b69d9b56665d1333.tar.gz vyatta-wanloadbalance-e04a3602d2be984a8ec71bf8b69d9b56665d1333.zip | |
fix for bug 4699. Note that dhcp nexthop detection was also broken due to changes in the location of the dhcp client information. this was also
fixed.
Diffstat (limited to 'src/lboutput.cc')
| -rw-r--r-- | src/lboutput.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lboutput.cc b/src/lboutput.cc index e673ee0..35118d3 100644 --- a/src/lboutput.cc +++ b/src/lboutput.cc @@ -69,7 +69,12 @@ LBOutput::write(const LBData &lbdata) string target = iter->second._ping_target; if (target.empty()) { - target = iter->second._nexthop; + if (iter->second._nexthop == "dhcp") { + target = iter->second._dhcp_nexthop; + } + else { + target = iter->second._nexthop; + } } line += space + string("Target: Ping ") + target + "\n"; |
