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:
parent
e7ddcf1418
commit
02e8be97cc
13 changed files with 229 additions and 257 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue