diff options
Diffstat (limited to 'proto/static/static.c')
-rw-r--r-- | proto/static/static.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/static/static.c b/proto/static/static.c index 0e80ad64..071803a8 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -472,6 +472,10 @@ static_postconfig(struct proto_config *CF) struct static_config *cf = (void *) CF; struct static_route *r; + /* If there is just a MPLS channel, use it as a main channel */ + if (!CF->net_type && proto_cf_mpls_channel(CF)) + CF->net_type = NET_MPLS; + if (! proto_cf_main_channel(CF)) cf_error("Channel not specified"); |