add IP address to known hosts file
authorrmurray <>
Wed, 5 Dec 2001 06:20:14 +0000 (06:20 +0000)
committerrmurray <>
Wed, 5 Dec 2001 06:20:14 +0000 (06:20 +0000)
ud-generate

index a379826..16fe435 100755 (executable)
@@ -463,9 +463,9 @@ def GenSSHKnown(l,File):
       SHost = string.find(Host,".");
       for I in x[1]["sshrsahostkey"]:
          if SHost == None:
-            Line = "%s %s" %(Host,I);
+            Line = "%s,%s %s" %(Host,gethostbyname(Host),I);
          else:
-            Line = "%s,%s %s" %(Host,Host[0:SHost],I);
+            Line = "%s,%s,%s %s" %(Host,Host[0:SHost],,gethostbyname(Host),I);
          Line = Sanitize(Line) + "\n";
          F.write(Line);
          Fdb.write("+%d,%d:%s->%s\n"%(len(Host),len(I),Host,I));