diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-23 08:00:53 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-23 08:00:53 -0800 |
| commit | d142185f3fa980e6099c3f07d37ad2c327e031c6 (patch) | |
| tree | 74232e62a0b8cb34720a1836f96cafebf5785e9a /src/core/dialer.c | |
| parent | 49ce5d1b557d3f6477fb5a478c32ab34a92308d9 (diff) | |
| download | nng-d142185f3fa980e6099c3f07d37ad2c327e031c6.tar.gz nng-d142185f3fa980e6099c3f07d37ad2c327e031c6.tar.bz2 nng-d142185f3fa980e6099c3f07d37ad2c327e031c6.zip | |
core: remove NNG_OPT_URL entirely
Diffstat (limited to 'src/core/dialer.c')
| -rw-r--r-- | src/core/dialer.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/core/dialer.c b/src/core/dialer.c index 5e44cbff..dfa198c5 100644 --- a/src/core/dialer.c +++ b/src/core/dialer.c @@ -454,9 +454,6 @@ nni_dialer_setopt( { nni_option *o; - if (strcmp(name, NNG_OPT_URL) == 0) { - return (NNG_EREADONLY); - } if (strcmp(name, NNG_OPT_RECONNMAXT) == 0) { int rv; nni_mtx_lock(&d->d_mtx); @@ -533,13 +530,6 @@ nni_dialer_getopt( return (o->o_get(d->d_data, valp, szp, t)); } - // We provide a fallback on the URL, but let the implementation - // override. This allows the URL to be created with wildcards, - // that are resolved later. - if (strcmp(name, NNG_OPT_URL) == 0) { - return (nni_copyout_str(d->d_url.u_rawurl, valp, szp, t)); - } - return (nni_sock_getopt(d->d_sock, name, valp, szp, t)); } |
