1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-19 16:46:23 -07:00

Remove incomplete SyncForMac Docker stuff, start splitting docker-compose into 4 files (mariadb, mysql, postgresql, sqlite)

This commit is contained in:
Eggbertx 2024-10-27 23:21:44 -07:00
parent e7ddcf1418
commit 02e8be97cc
13 changed files with 229 additions and 257 deletions

View file

@ -4,7 +4,6 @@ import (
"database/sql"
"encoding/json"
"errors"
"net"
"os"
"os/exec"
"path"
@ -42,9 +41,9 @@ type GochanConfig struct {
// ValidateValues checks to make sure that the configuration options are usable
// (e.g., ListenIP is a valid IP address, Port isn't a negative number, etc)
func (gcfg *GochanConfig) ValidateValues() error {
if net.ParseIP(gcfg.ListenIP) == nil {
return &InvalidValueError{Field: "ListenIP", Value: gcfg.ListenIP}
}
// if net.ParseIP(gcfg.ListenIP) == nil {
// return &InvalidValueError{Field: "ListenIP", Value: gcfg.ListenIP}
// }
changed := false
_, err := durationutil.ParseLongerDuration(gcfg.CookieMaxAge)