gofmt
This commit is contained in:
@ -278,9 +278,9 @@ func (c *Conf) I2PINILoad(iniFile string, label ...string) error {
|
||||
// NewI2PBlankTunConf returns an empty but intialized tunconf
|
||||
func NewI2PBlankTunConf() *Conf {
|
||||
var c Conf
|
||||
c.Config = &goini.INI{}
|
||||
c.Config = &goini.INI{}
|
||||
c.Config = goini.New()
|
||||
c.Config.Parse([]byte(""),"\n","=")
|
||||
c.Config.Parse([]byte(""), "\n", "=")
|
||||
return &c
|
||||
}
|
||||
|
||||
|
@ -95,9 +95,9 @@ func (t *TunnelHandlerMux) Tunnels() []*TunnelHandler {
|
||||
|
||||
func (m *TunnelHandlerMux) Append(v *TunnelHandler) *TunnelHandlerMux {
|
||||
if m == nil {
|
||||
return m
|
||||
}
|
||||
for _, prev := range m.tunnels {
|
||||
return m
|
||||
}
|
||||
for _, prev := range m.tunnels {
|
||||
if v.ID() == prev.ID() {
|
||||
log.Printf("v.ID() found, %s == %s", v.ID(), prev.ID())
|
||||
return m
|
||||
|
Reference in New Issue
Block a user