Apply suggestions from code review
Review suggestions in the documentation Co-authored-by: Leo Antunes <leo@costela.net>
This commit is contained in:
@ -87,7 +87,7 @@ func (s *State) DownInterface() error {
|
||||
return netlink.LinkDel(link)
|
||||
}
|
||||
|
||||
// SetUpInterface creates and setup the associated network interface
|
||||
// SetUpInterface creates and sets up the associated network interface
|
||||
func (s *State) SetUpInterface(nodes []common.Node) error {
|
||||
if err := netlink.LinkAdd(&wireguard{LinkAttrs: netlink.LinkAttrs{Name: s.iface}}); err != nil && !os.IsExist(err) {
|
||||
return errors.Wrapf(err, "could not create interface %s", s.iface)
|
||||
|
Reference in New Issue
Block a user