Add favicon route

This commit is contained in:
Jacob Gunther
2023-07-20 13:36:20 -05:00
parent 7ecc250f03
commit 17948164fd
3 changed files with 10 additions and 2 deletions

View File

@@ -18,8 +18,10 @@ import (
var (
//go:embed icon.png
defaultIconBytes []byte
blockedServers *MutexArray[string] = nil
ipAddressRegex *regexp.Regexp = regexp.MustCompile(`^\d{1,3}(\.\d{1,3}){3}$`)
//go:embed favicon.ico
favicon []byte
blockedServers *MutexArray[string] = nil
ipAddressRegex *regexp.Regexp = regexp.MustCompile(`^\d{1,3}(\.\d{1,3}){3}$`)
)
// MutexArray is a thread-safe array for storing and retrieving values.