--- lmtp2nntp_config.c 2002/01/31 10:14:54 1.20
+++ lmtp2nntp_config.c 2002/01/31 10:40:07 1.21
@@ -359,6 +359,28 @@
catch (ex)
rethrow;
+ /* --client SINGLE */
+ try {
+ if ( (val_get(ctx->val, "option.client", &ov) != VAL_OK)
+ || (ov->ndata != 1)
+ || (ov->data.s == NULL)
+ ) throw(0,0,0);
+ log1(ctx, TRACE, "--client = \"%s\"", ov->data.s);
+
+ if ((rc = sa_addr_create(&ctx->saaClientbind)) != SA_OK) {
+ log1(ctx, ERROR, "option --client, create address (internal) failed with \"%s\"",
+ sa_error(rc));
+ throw(0,0,0);
+ }
+ if ((rc = sa_addr_u2a(ctx->saaClientbind, "inet://%s", ov->data.s)) != SA_OK) {
+ log2(ctx, ERROR, "option --client, parsing alternate IO guessing INET socket (%s) failed with \"%s\"",
+ ov->data.s, sa_error(rc));
+ throw(0,0,0);
+ }
+ }
+ catch (ex)
+ rethrow;
+
CUS:
return;
}
|