Skip to content

Commit 9eaa51f

Browse files
committed
MicroHTTPKit: Enable Dual Stack
1 parent ac5b4f3 commit 9eaa51f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Libraries/MicroHTTPKit/Source/HKHTTPServer.m

+4-4
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ - (instancetype)initWithPort:(NSUInteger)port {
216216
}
217217

218218
- (BOOL)startWithError:(NSError **)error {
219-
_daemon =
220-
MHD_start_daemon(MHD_USE_AUTO_INTERNAL_THREAD, (unsigned short) _port, NULL, NULL,
221-
&accessHandler, (__bridge void *) (self), MHD_OPTION_NOTIFY_COMPLETED,
222-
requestCompletedCallback, NULL, MHD_OPTION_END);
219+
_daemon = MHD_start_daemon(MHD_USE_AUTO_INTERNAL_THREAD | MHD_USE_DUAL_STACK,
220+
(unsigned short) _port, NULL, NULL, &accessHandler,
221+
(__bridge void *) (self), MHD_OPTION_NOTIFY_COMPLETED,
222+
requestCompletedCallback, NULL, MHD_OPTION_END);
223223
if (!_daemon) {
224224
if (error) {
225225
*error = [NSError errorWithDomain:NSPOSIXErrorDomain code:errno userInfo:nil];

Libraries/MicroHTTPKit/meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
project('MicroHTTPKit', 'objc', version : '0.2.0', default_options : ['warning_level=3'])
1+
project('MicroHTTPKit', 'objc', version : '0.2.1', default_options : ['warning_level=3'])
22

33
pkg = import('pkgconfig')
44

nix/microhttpkit.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
gnustep.stdenv.mkDerivation rec {
44
pname = "microhttpkit";
5-
version = "0.2.0";
5+
version = "0.2.1";
66

77
src = ../Libraries/MicroHTTPKit;
88

0 commit comments

Comments
 (0)