Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -9134,13 +9134,7 @@ inline bool setup_client_tls_session(const std::string &host, tls::ctx_t &ctx,
*/

inline void default_socket_options(socket_t sock) {
detail::set_socket_opt(sock, SOL_SOCKET,
#ifdef SO_REUSEPORT
SO_REUSEPORT,
#else
SO_REUSEADDR,
#endif
1);
detail::set_socket_opt(sock, SOL_SOCKET, SO_REUSEADDR, 1);
}

inline std::string get_bearer_token_auth(const Request &req) {
Expand Down
Loading