Skip to content

Instantly share code, notes, and snippets.

@dydx
Created January 6, 2010 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dydx/270762 to your computer and use it in GitHub Desktop.
Save dydx/270762 to your computer and use it in GitHub Desktop.
# snip
# Gives error when a torrent is loaded that has a udp announcement.
# def check
# if @s.announce_list
# @s.announce_list.each do |tier|
# tier.each { |track| raise MetaInfoFormatError, "expecting HTTP URL in announce-list, got #{track} instead" unless track.is_a? URI::HTTP }
# end
# end
# end
# Doesnt give error when a torrent is loafed that has a udp announcement.
def check; end;
# snip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment