mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
fix oshttphost compare
This commit is contained in:
@@ -319,18 +319,18 @@ namespace OpenSim.Framework
|
||||
|
||||
public int CompareTo(OSHHTPHost other)
|
||||
{
|
||||
if (((Flags & other.Flags) & OSHTTPURIFlags.ValidHost) != 0)
|
||||
if (Port == other.Port && ((Flags & other.Flags) & OSHTTPURIFlags.ValidHost) != 0)
|
||||
{
|
||||
return URI.CompareTo(other.Host);
|
||||
return Host.CompareTo(other.Host);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public bool Equals(OSHHTPHost other)
|
||||
{
|
||||
if (((Flags & other.Flags) & OSHTTPURIFlags.ValidHost) != 0)
|
||||
if (Port == other.Port && ((Flags & other.Flags) & OSHTTPURIFlags.ValidHost) != 0)
|
||||
{
|
||||
return URI.Equals(other.URI);
|
||||
return Host.Equals(other.Host);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -183,24 +183,24 @@
|
||||
|
||||
|
||||
[Hypergrid]
|
||||
;# {HomeURI} {Hypergrid} {The Home URL of this world} {}
|
||||
;# {HomeURI} {Hypergrid} {The Home URL of this grid} {}
|
||||
;; This is the address of the external robust server that
|
||||
;; runs the UserAgentsService, possibly this server.
|
||||
;; For example http://myworld.com:8002
|
||||
;; This is a default that can be overwritten in some sections.
|
||||
; HomeURI = "${Const|BaseURL}:${Const|PublicPort}"
|
||||
|
||||
;# {GatekeeperURI} {Hypergrid} {The URL of the gatekeeper of this world} {}
|
||||
;# {GatekeeperURI} {Hypergrid} {The URL of the gatekeeper of this grid} {}
|
||||
;; This is the address of the external robust server
|
||||
;; that runs the Gatekeeper service, possibly this server.
|
||||
;; For example http://myworld.com:8002
|
||||
;; This is a default that can be overwritten in some sections.
|
||||
; GatekeeperURI = "${Const|BaseURL}:${Const|PublicPort}"
|
||||
|
||||
# {GatekeeperURIAlias} {Hypergrid} {old http schema (default http://), hostnames (FQDN), or IPs of the gatekeeper of this world and port (default 80 or 443)} {}
|
||||
;; comma separated list,
|
||||
;; in case there was for example a dns change, etc
|
||||
;; or you have other grid url for local users
|
||||
# {GatekeeperURIAlias} {Hypergrid} {alternative hostnames (FQDN), or IPs of the gatekeeper of this grid and port (default 80 or 443 if alias starts with https://)} {}
|
||||
;; comma separated list,
|
||||
;; this is to allow this grid to identify this as references to itself
|
||||
;; entries can be unsecure url (host:port) if using ssl, direct login url if diferent, old grid url, etc
|
||||
; GatekeeperURIAlias = "login.osgrid.org"
|
||||
|
||||
[AccessControl]
|
||||
|
||||
@@ -47,9 +47,10 @@
|
||||
;; This is a default that can be overwritten in some sections.
|
||||
; GatekeeperURI = "${Const|BaseURL}:${Const|PublicPort}"
|
||||
|
||||
;# {GatekeeperURIAlias} {Hypergrid} {Old hostnames (FQDN), or IPs of the gatekeeper of this world and port (default 80 or 443)} {}
|
||||
;; comma separated list,
|
||||
;; in case there was for example a dns change, etc
|
||||
;# {GatekeeperURIAlias} {Hypergrid} {alternative hostnames (FQDN) or IPs of the gatekeeper of this world and port (default 80 or 443 if entry starts with https://)} {}
|
||||
;; comma separated list,
|
||||
;; this is to allow this world to identify this entries also as references to itself
|
||||
;; entries can be unsecure url (host:port) if using ssl, direct login url if diferent, old grid url, etc
|
||||
; GatekeeperURIAlias = myoldname.something.org, 127.0.0.1,127.0.0.1:8043
|
||||
|
||||
;# {HomeURI} {Hypergrid} {The Home URL of this world} {}
|
||||
@@ -60,9 +61,9 @@
|
||||
;; This is a default that can be overwritten in some sections.
|
||||
HomeURI = "${Const|BaseURL}:${Const|PublicPort}"
|
||||
|
||||
;# {HomeURIAlias} {Hypergrid} {Old hostnames (FQDN), or IPs of the gatekeeper of this world and port (default 80 or 443)} {}
|
||||
;# {HomeURIAlias} {Hypergrid} {alternative hostnames (FQDN), or IPs of the home service of this world and port (default 80 or 443)} {}
|
||||
;; comma separated list,
|
||||
;; in case there was for example a dns change, etc
|
||||
;; see GatekeeperURIAlias
|
||||
; HomeURIAlias = myoldname.something.org, 127.0.0.1,127.0.0.1:8043
|
||||
|
||||
[Modules]
|
||||
|
||||
Reference in New Issue
Block a user