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
|
// NewI2PBlankTunConf returns an empty but intialized tunconf
|
||||||
func NewI2PBlankTunConf() *Conf {
|
func NewI2PBlankTunConf() *Conf {
|
||||||
var c Conf
|
var c Conf
|
||||||
c.Config = &goini.INI{}
|
c.Config = &goini.INI{}
|
||||||
c.Config = goini.New()
|
c.Config = goini.New()
|
||||||
c.Config.Parse([]byte(""),"\n","=")
|
c.Config.Parse([]byte(""), "\n", "=")
|
||||||
return &c
|
return &c
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,9 +95,9 @@ func (t *TunnelHandlerMux) Tunnels() []*TunnelHandler {
|
|||||||
|
|
||||||
func (m *TunnelHandlerMux) Append(v *TunnelHandler) *TunnelHandlerMux {
|
func (m *TunnelHandlerMux) Append(v *TunnelHandler) *TunnelHandlerMux {
|
||||||
if m == nil {
|
if m == nil {
|
||||||
return m
|
return m
|
||||||
}
|
}
|
||||||
for _, prev := range m.tunnels {
|
for _, prev := range m.tunnels {
|
||||||
if v.ID() == prev.ID() {
|
if v.ID() == prev.ID() {
|
||||||
log.Printf("v.ID() found, %s == %s", v.ID(), prev.ID())
|
log.Printf("v.ID() found, %s == %s", v.ID(), prev.ID())
|
||||||
return m
|
return m
|
||||||
|
Reference in New Issue
Block a user