Skip to content

Commit

Permalink
Fix bug #11 for bind_address option, thanks to @jiangxianming
Browse files Browse the repository at this point in the history
  • Loading branch information
babelouest committed Mar 21, 2017
1 parent b788794 commit d08f7c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ulfius.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ struct MHD_Daemon * ulfius_run_mhd_daemon(struct _u_instance * u_instance, const
mhd_ops[0].ptr_value = NULL;

mhd_ops[1].option = MHD_OPTION_SOCK_ADDR;
mhd_ops[1].value = (intptr_t)u_instance->bind_address;
mhd_ops[1].ptr_value = NULL;
mhd_ops[1].value = 0;
mhd_ops[1].ptr_value = (void *)u_instance->bind_address;

mhd_ops[2].option = MHD_OPTION_URI_LOG_CALLBACK;
mhd_ops[2].value = (intptr_t)ulfius_uri_logger;
Expand Down

0 comments on commit d08f7c2

Please sign in to comment.