Browse Source

device: use local host and user names in identity

bboozzoo/device-cache
Maciek Borzecki 10 years ago
parent
commit
146bf24eda
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/device.vala

+ 4
- 2
src/device.vala View File

@ -84,8 +84,10 @@ class Device : Object {
private async void greet() {
var core = Core.instance();
yield _channel.send(Packet.new_identity("test-laptop",
"dadada",
string host_name = Environment.get_host_name();
string user = Environment.get_user_name();
yield _channel.send(Packet.new_identity(@"$user@$host_name",
Environment.get_host_name(),
core.handlers.interfaces,
core.handlers.interfaces));
this.pair_if_needed();


Loading…
Cancel
Save