Permalink
Browse files

guids should be 36 chars

  • Loading branch information...
1 parent 57d0d90 commit 9d36c6cc01640e9677a06677ac36004ae232f090 @RJ committed Feb 5, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/cjuuid.h
  2. +1 −1 src/servent.cpp
View
@@ -4,7 +4,7 @@
inline static QString uuid()
{
QString q = QUuid::createUuid();
- q.remove(1);
+ q.remove(0);
q.chop(1);
return q;
}
View
@@ -283,7 +283,7 @@ void Servent::bonjourRecordResolved(const QHostInfo &host, int port)
qDebug() << "bonjourRecordResolved: " << ha.toString() << " port: " << port;
// offer to our peers:
- QString key = "daap-offer-key-"+host.hostName();
+ QString key = uuid();
ProxyConnection * proxc = new ProxyConnection(ha, port, this);
proxc->setName(key);
connect(proxc, SIGNAL(finished()), this, SLOT(unregisterProxyConnection()));

0 comments on commit 9d36c6c

Please sign in to comment.