Skip to content
Snippets Groups Projects
Commit d37d17a3 authored by Pea Nut's avatar Pea Nut Committed by jkito
Browse files

Remove Bitmask.checkForMOTD function

Not needed anymore. We call motd.FetchLatest() directly when initializing the Bitmask struct
parent 39edea83
Branches
Tags
1 merge request!198v5 implementation with a single Bitmask struct
......@@ -120,7 +120,6 @@ func Init() (*Bitmask, error) {
// FIXME multiprovider: need to pass provider name early on
// XXX we want to block on these, but they can timeout if we're blocked.
b.checkForMOTD()
err = b.launch.FirewallStop()
if err != nil {
log.Printf("Could not stop firewall: %v", err)
......@@ -147,10 +146,6 @@ func (b *Bitmask) SetProvider(p string) {
b.provider = p
}
func (b *Bitmask) checkForMOTD() {
b.motd = motd.FetchLatest()
}
// GetStatusCh returns a channel that will recieve VPN status changes
func (b *Bitmask) GetStatusCh() <-chan string {
return b.statusCh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment