patch-amttool 389 B

12345678910111213
  1. $OpenBSD: patch-amttool,v 1.1.1.1 2012/06/02 12:09:35 sthen Exp $
  2. --- amttool.orig Sat Jun 2 12:56:35 2012
  3. +++ amttool Sat Jun 2 12:58:08 2012
  4. @@ -8,7 +8,7 @@ my $amt_host = shift;
  5. my $amt_port = "16992";
  6. my $amt_proto = 'http';
  7. -if ($amt_host =~ /([^:]+):(\d+)/) {
  8. +if ($amt_host && $amt_host =~ /([^:]+):(\d+)/) {
  9. $amt_host = $1;
  10. $amt_port = $2;
  11. if ($amt_port == 16993) {