ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostUpdateSharp/HostUpdateSharp.cs
(Generate patch)

Comparing HostUpdateSharp/HostUpdateSharp.cs (file contents):
Revision 101 by Douglas Thrift, 2004-03-02T01:40:20-08:00 vs.
Revision 108 by Douglas Thrift, 2004-03-02T14:57:46-08:00

# Line 33 | Line 33 | public class HostUpdateSharp
33                  {
34                          new HostUpdateSharp();
35                  }
36 <                catch (Exception exception) { Console.Error.WriteLine(exception); }
36 >                catch (Exception exception)
37 >                {
38 >                        Console.Error.WriteLine(exception);
39 >                        Environment.Exit(1);
40 >                }
41          }
42          public HostUpdateSharp()
43          {
44 <                StringBuilder host = new StringBuilder("host=" + Dns.GetHostName());
44 >                StringBuilder host = new StringBuilder("host=" +
45 >                        Dns.GetHostName().ToLower());
46                  string url = "http://topsecret.douglasthrift.net/auth/hostupdate.cgi";
47  
48                  if ((host + "").IndexOf('.') < 0)
# Line 87 | Line 92 | public class HostUpdateSharp
92          {
93                  if (uname == "")
94                  {
95 <                        uname = "Unknown 0.0 x86";
95 >                        uname = "Unknown";
96                  }
97  
98                  return uname;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines