mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
Port changes: * Remove the overriding patch of boost::asio: now EINPROGRESS is handled properly, before it was not. * Remove the overriding patch of websocketpp: added an equivalent patch into cadabra2 source, it is easier this way. Before such function didn't exist in the websocketpp interface. * Add the patch for pull/82: missing #include / removal of unnecessary prefix calculation. * Change cmake -> cmake:outsource. * Switch to python3 because it links to python3 anyway, even though it claims to support python2. * Add DOS2UNIX_FILES for cmake/version.cmake for one patched file. * Remove post-patch: added a similar patch under files/ * Remove post-install: stripping is now done by the project. * Remove post-install-GUI-on: icons are now installed by the project. Testing: * Runs fine, shows correct results for examples from the online manual.
11 lines
478 B
C++
11 lines
478 B
C++
--- client_server/Server.cc.orig 2018-03-31 19:40:16 UTC
|
|
+++ client_server/Server.cc
|
|
@@ -466,7 +466,7 @@ void Server::run()
|
|
|
|
wserver.init_asio();
|
|
wserver.set_reuse_addr(true);
|
|
- wserver.listen(0);
|
|
+ wserver.listen(websocketpp::lib::asio::ip::tcp::v4(), 0); // makes up for a failed assumption that IPv6 is mapped into IPv4: (see net.inet6.ip6.v6only=0)
|
|
wserver.start_accept();
|
|
websocketpp::lib::asio::error_code ec;
|
|
auto p = wserver.get_local_endpoint(ec);
|