spidah-ruby_gntp 0.1.3 → 0.1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ruby_gntp.rb +2 -2
- metadata +1 -1
data/lib/ruby_gntp.rb
CHANGED
@@ -41,7 +41,7 @@ class GNTP
|
|
41
41
|
attr_reader :message if $DEBUG
|
42
42
|
|
43
43
|
RUBY_GNTP_NAME = 'ruby_gntp'
|
44
|
-
RUBY_GNTP_VERSION = '0.1.3'
|
44
|
+
RUBY_GNTP_VERSION = '0.1.3.1'
|
45
45
|
|
46
46
|
def initialize(app_name = 'Ruby/GNTP', host = 'localhost', password = '', port = 23053)
|
47
47
|
@app_name = app_name
|
@@ -229,7 +229,7 @@ class GNTP
|
|
229
229
|
# a file icon gets read and stored, ready to be appended to the end of the request
|
230
230
|
#
|
231
231
|
def handle_icon(icon, type)
|
232
|
-
if File.exists?(icon)
|
232
|
+
if File.exists?(icon) && @target_host != 'localhost'
|
233
233
|
file = File.new(icon)
|
234
234
|
data = file.read
|
235
235
|
size = data.length
|