diff options
Diffstat (limited to 'src/starter')
-rw-r--r-- | src/starter/confread.c | 3 | ||||
-rw-r--r-- | src/starter/starterstroke.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/starter/confread.c b/src/starter/confread.c index 9f1453394..9e83581fa 100644 --- a/src/starter/confread.c +++ b/src/starter/confread.c @@ -252,7 +252,8 @@ kw_end(starter_conn_t *conn, starter_end_t *end, kw_token_t token plog("# natip and sourceip cannot be defined at the same time"); goto err; } - if (streq(value, "%modeconfig") || streq(value, "%modecfg")) + if (streq(value, "%modeconfig") || streq(value, "%modecfg") || + streq(value, "%config") || streq(value, "%cfg")) { end->modecfg = TRUE; } diff --git a/src/starter/starterstroke.c b/src/starter/starterstroke.c index 28d777a21..79ad33f61 100644 --- a/src/starter/starterstroke.c +++ b/src/starter/starterstroke.c @@ -166,6 +166,9 @@ static void starter_stroke_add_end(stroke_msg_t *msg, stroke_end_t *msg_end, sta msg_end->hostaccess = conn_end->hostaccess; msg_end->protocol = conn_end->protocol; msg_end->port = conn_end->port; + msg_end->virtual_ip = conn_end->modecfg; + ip_address2string(&conn_end->srcip, buffer, sizeof(buffer)); + msg_end->sourceip = push_string(msg, buffer); } int starter_stroke_add_conn(starter_conn_t *conn) |