alsmith / multicast-relay

Relay multicast and broadcast packets between interfaces.
GNU General Public License v3.0
304 stars 47 forks source link

Don't import `http.server` unless it is needed #79

Open joshuaspence opened 7 months ago

joshuaspence commented 7 months ago

I am using multicast-relay on a fairly minimal system which has Python installed but doesn't have the http or netifaces modules. Since multicast-relay already wraps import netifaces within a conditional, it seemed reasonable to do the same for import http.server as well.