X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fmeshlink%2B%2B.h;h=11e7eabb99d71dc260acfd9c413dd00a21a71b5b;hp=4d900448baae145a0b91616190d09c8e5766328e;hb=11d4da4957cb576abe9ee79c9893809a34f1f3d9;hpb=d8c4f59c17daf8d2728ad2ecb4583822376d44ec diff --git a/src/meshlink++.h b/src/meshlink++.h index 4d900448..11e7eabb 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -1030,6 +1030,17 @@ public: meshlink_set_inviter_commits_first(handle, inviter_commits_first); } + /// Set the URL used to discover the host's external address + /** For generating invitation URLs, MeshLink can look up the externally visible address of the local node. + * It does so by querying an external service. By default, this is http://meshlink.io/host.cgi. + * Only URLs starting with http:// are supported. + * + * @param url The URL to use for external address queries, or NULL to revert back to the default URL. + */ + void set_external_address_discovery_url(const char *url) { + meshlink_set_external_address_discovery_url(handle, url); + } + private: // non-copyable: mesh(const mesh &) /* TODO: C++11: = delete */;