From a376bf915a397e71763bed9e86ab2767d5467e85 Mon Sep 17 00:00:00 2001
From: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Thu, 29 Oct 2020 17:24:12 +0300
Subject: [PATCH] .goreleaser: add a new snap plug to bind to devices

Closes #2228.
---
 .goreleaser.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.goreleaser.yml b/.goreleaser.yml
index 289c864c..6dbdf32d 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -90,7 +90,13 @@ snapcrafts:
     apps:
       adguard-home:
         command: AdGuardHome -w $SNAP_DATA --no-check-update
-        plugs: [ network-bind ]
+        plugs:
+          # Add the "netrwork-bind" plug to bind to interfaces.
+          - network-bind
+          # Add the "netrwork-manager" plug to be able to bind to ports below
+          # 1024 (cap_net_bind_service) and also to bind to a particular
+          # interface using SO_BINDTODEVICE (cap_net_raw).
+          - network-manager
         daemon: simple
       adguard-home-web:
         command: adguard-home-web.sh