Skip to content

Commit

Permalink
fix:1.disable hash targent; 2.always print log info:hash target not s…
Browse files Browse the repository at this point in the history
…upport.
  • Loading branch information
weiyanhua committed Nov 16, 2020
1 parent 3058c44 commit 21ee88a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions tools/keepalived/keepalived/check/check_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,16 +442,18 @@ dump_vs(FILE *fp, const void *data)
conf_write(fp, " SYN proxy is %s", vs->syn_proxy ? "ON" : "OFF");
conf_write(fp, " expire_quiescent_conn is %s", vs->expire_quiescent_conn ? "ON" : "OFF");

switch (vs->hash_target) {
case IP_VS_SVC_F_SIP_HASH:
conf_write(fp, " hash target = sip");
break;
case IP_VS_SVC_F_QID_HASH:
conf_write(fp, " hash target = quicid");
break;
default:
conf_write(fp, " hash target not support");
break;
if (vs->hash_target) {
switch (vs->hash_target) {
case IP_VS_SVC_F_SIP_HASH:
conf_write(fp, " hash target = sip");
break;
case IP_VS_SVC_F_QID_HASH:
conf_write(fp, " hash target = quicid");
break;
default:
conf_write(fp, " hash target not support");
break;
}
}

conf_write(fp, " alive = %d", vs->alive);
Expand Down

0 comments on commit 21ee88a

Please sign in to comment.