From d37d17a3c7b80900172c24e01ce287e642ccd6a0 Mon Sep 17 00:00:00 2001
From: Pea Nut <peanut2@systemli.org>
Date: Fri, 14 Jun 2024 09:42:06 +0200
Subject: [PATCH] Remove Bitmask.checkForMOTD function

Not needed anymore. We call motd.FetchLatest() directly when initializing the Bitmask struct
---
 pkg/vpn/bitmask.go | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/pkg/vpn/bitmask.go b/pkg/vpn/bitmask.go
index 4a56b2f2..f5ad8ff0 100644
--- a/pkg/vpn/bitmask.go
+++ b/pkg/vpn/bitmask.go
@@ -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
-- 
GitLab