You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2017/07/05 19:38:43 UTC

mesos git commit: Added support for `net::IPv4` and `net::IPv6` in `FlagsBase`.

Repository: mesos
Updated Branches:
  refs/heads/master 355861cd9 -> 2c1be9ced


Added support for `net::IPv4` and `net::IPv6` in `FlagsBase`.

Review: https://reviews.apache.org/r/60149/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/2c1be9ce
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/2c1be9ce
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/2c1be9ce

Branch: refs/heads/master
Commit: 2c1be9ced126fce008c626df63c110169e5b60fd
Parents: 355861c
Author: Avinash sridharan <av...@mesosphere.io>
Authored: Wed Jul 5 12:38:07 2017 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Wed Jul 5 12:38:07 2017 -0700

----------------------------------------------------------------------
 3rdparty/stout/include/stout/flags/parse.hpp | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/2c1be9ce/3rdparty/stout/include/stout/flags/parse.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/flags/parse.hpp b/3rdparty/stout/include/stout/flags/parse.hpp
index 3448c57..6112d69 100644
--- a/3rdparty/stout/include/stout/flags/parse.hpp
+++ b/3rdparty/stout/include/stout/flags/parse.hpp
@@ -80,7 +80,21 @@ inline Try<Bytes> parse(const std::string& value)
 template <>
 inline Try<net::IP> parse(const std::string& value)
 {
-  return net::IP::parse(value, AF_INET);
+  return net::IP::parse(value);
+}
+
+
+template <>
+inline Try<net::IPv4> parse(const std::string& value)
+{
+  return net::IPv4::parse(value);
+}
+
+
+template <>
+inline Try<net::IPv6> parse(const std::string& value)
+{
+  return net::IPv6::parse(value);
 }