Code cleanup

This commit is contained in:
Dane Everitt
2020-04-10 18:03:35 -07:00
parent c57708d1e0
commit af241f3de4
5 changed files with 17 additions and 56 deletions

View File

@@ -48,8 +48,6 @@ func New(data []byte) (*Installer, error) {
},
}
s.Init()
s.Allocations.DefaultMapping.Ip = getString(data, "allocations", "default", "ip")
s.Allocations.DefaultMapping.Port = int(getInt(data, "allocations", "default", "port"))
@@ -94,7 +92,7 @@ func New(data []byte) (*Installer, error) {
// Create a new server instance using the configuration we wrote to the disk
// so that everything gets instantiated correctly on the struct.
s2, err := server.FromConfiguration(c, &config.Get().System)
s2, err := server.FromConfiguration(c)
return &Installer{
server: s2,