This commit is contained in:
Pengfei Ni
2016-05-29 09:19:06 +00:00
parent 071a0c2b30
commit 6065205cb2
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1028,7 +1028,7 @@ static int hyper_parse_white_cidrs(struct hyper_pod *pod, char *json, jsmntok_t
i++;
for (j = 0; j < pod->w_num; j++, i++) {
pod->white_cidrs[j] = (json_token_str(json, &toks[i]));
fprintf(stdout, "pod white_cidr %d: %s\n", j, pod->dns[j]);
fprintf(stdout, "pod white_cidr %d: %s\n", j, pod->white_cidrs[j]);
}
return i;
+1
View File
@@ -239,6 +239,7 @@ void hyper_cleanup_portmapping(struct hyper_pod *pod)
int i = 0;
for(i=0; i< sizeof(rules)/sizeof(struct ipt_rule); i++) {
if (hyper_setup_iptables_rule(rules[i])<0) {
return;
}
}
}