philippgille / serve

serve starts a simple temporary static file server in your current directory and prints your IP address to share with colleagues
Mozilla Public License 2.0
153 stars 15 forks source link

Snap package doesn't work #14

Closed philippgille closed 6 years ago

philippgille commented 6 years ago

When executing the Snap, the following error occurs:

$ serve

Serving "." on all network interfaces (0.0.0.0) on HTTP port: 8100

Local network interfaces and their IP addresses so you can pass one to your colleagues:

2018/05/12 12:39:23 route ip+net: netlinkrib: operation not permitted

The same when using -t for testing.

Solution

We probably need to declare some capabilities in the snapcraft.yaml, see:

network-bind is probably necessary for acting as server.

Another interface might be necessary for accessing files in the directory the user requests.