diff options
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index ff183708..d971ce5e 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -331,6 +331,9 @@ static void ipoe_session_start(struct ipoe_session *ses) struct unit_cache *uc; if (!ses->ses.username) { + if (!ses->serv->opt_shared) + strncpy(ses->ses.ifname, ses->serv->ifname, AP_IFNAME_LEN); + ipoe_session_set_username(ses); if (!ses->ses.username) { |