diff --git a/resources/templates/provision/grandstream/grp261x/{$mac}.xml b/resources/templates/provision/grandstream/grp261x/{$mac}.xml index 68dbecda4f..17fc90c8de 100644 --- a/resources/templates/provision/grandstream/grp261x/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp261x/{$mac}.xml @@ -737,7 +737,17 @@ - IPv4Only + {if $grandstream_ipv_mode=='0'} + BothAndPreferIPv4 + {elseif $grandstream_ipv_mode=='1'} + BothAndPreferIPv6 + {elseif $grandstream_ipv_mode=='2'} + IPv4Only + {elseif $grandstream_ipv_mode=='3'} + IPv6Only + {else} + BothAndPreferIPv4 + {/if} diff --git a/resources/templates/provision/grandstream/gxv3370/{$mac}.xml b/resources/templates/provision/grandstream/gxv3370/{$mac}.xml index fb629e672b..d5b262f843 100644 --- a/resources/templates/provision/grandstream/gxv3370/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxv3370/{$mac}.xml @@ -666,7 +666,17 @@ - BothAndPreferIPv4 + {if $grandstream_ipv_mode=='0'} + BothAndPreferIPv4 + {elseif $grandstream_ipv_mode=='1'} + BothAndPreferIPv6 + {elseif $grandstream_ipv_mode=='2'} + IPv4Only + {elseif $grandstream_ipv_mode=='3'} + IPv6Only + {else} + BothAndPreferIPv4 + {/if} DHCP