Browse Source

Add getBindIP() to parser, fixes issue 3205

Change-Id: I5d85396d77d0b50387519715a5b8c05d7e084232
Reviewed-on: http://gerrit.dmdirc.com/123
Tested-by: Shane Mc Cormack <shane@dmdirc.com>
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
tags/0.6.3
Shane Mc Cormack 14 years ago
parent
commit
d0b2bd1b72

+ 7
- 0
src/com/dmdirc/parser/interfaces/Parser.java View File

@@ -75,6 +75,13 @@ public interface Parser extends Runnable {
75 75
      */
76 76
     Collection<? extends ChannelInfo> getChannels();
77 77
 
78
+    /**
79
+     * Get the IP address that this parser will bind to
80
+     *
81
+     * @return IP that this parser is bound to ("" for default IP)
82
+     */
83
+    String getBindIP();
84
+
78 85
     /**
79 86
      * Set the IP address that this parser will bind to
80 87
      *

+ 2
- 5
src/com/dmdirc/parser/irc/IRCParser.java View File

@@ -322,11 +322,8 @@ public class IRCParser implements SecureParser, Runnable {
322 322
         return out;
323 323
     }
324 324
 
325
-    /**
326
-     * Get the current Value of bindIP.
327
-     *
328
-     * @return Value of bindIP ("" for default IP)
329
-     */
325
+    /** {@inheritDoc} */
326
+    @Override
330 327
     public String getBindIP() { return bindIP; }
331 328
 
332 329
     /** {@inheritDoc} */

Loading…
Cancel
Save